-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Use
pull_request_target
for dependency review workflow (#849)
Use `pull_request_target` for dependency review workflow Closes #841
- Loading branch information
1 parent
8173064
commit 4eca554
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name: Dependency Review | ||
|
||
on: | ||
pull_request: {} | ||
pull_request_target: {} | ||
workflow_dispatch: | ||
inputs: {} | ||
|
||
env: | ||
FOSSA_CLI_VERSION: '3.3.9' | ||
FOSSA_CLI_INSTALLER_VERSION: '3.3.10' | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -19,11 +19,14 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: GitHub dependency vulnerability check | ||
uses: actions/dependency-review-action@v2 | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
# Use this fork until https://github.com/actions/dependency-review-action/pull/165 is merged | ||
uses: WillDaSilva/dependency-review-action@main | ||
|
||
- name: FOSSA dependency license check | ||
run: | | ||
curl --no-progress-meter -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/v${FOSSA_CLI_VERSION}/install-latest.sh | bash | ||
# `$FOSSA_CLI_INSTALLER_VERSION` only controls the version of the installer used - the latest version of `fossa-cli` will always be used. | ||
curl --no-progress-meter -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/v${FOSSA_CLI_INSTALLER_VERSION}/install-latest.sh | bash | ||
echo '## FOSSA dependency license check' >> $GITHUB_STEP_SUMMARY | ||
echo '' >> $GITHUB_STEP_SUMMARY | ||
|