-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fossa: Run separately, only on push (#957)
Currently, the FOSSA analysis is set to run as part of CI. Minus the fact that it's not really part of the build, its reliance on a secret means that it won't run for any pull requests made from external forks. Resolve this by running the FOSSA analysis only when we push to a branch of the Zap repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: FOSSA Analysis | ||
on: push | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'uber-go' | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: FOSSA analysis | ||
uses: fossas/fossa-action@v1 | ||
with: | ||
api-key: ${{ secrets.FOSSA_API_KEY }} | ||
|
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