Skip to content

Commit

Permalink
Update FOSSA workflow condition to not run on Forks (#706)
Browse files Browse the repository at this point in the history
* Add workflow and badge

Signed-off-by: Shubham Sharma <[email protected]>

* Encode space in URL

Signed-off-by: Shubham Sharma <[email protected]>

* Update FOSSA workflow condition

Signed-off-by: Shubham Sharma <[email protected]>
Signed-off-by: Subash Gamage <[email protected]>
  • Loading branch information
shubham1172 authored and subashfmr committed Mar 18, 2022
1 parent 63b38b6 commit c085ca1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ on:
workflow_dispatch: {}
jobs:
fossa-scan:
if: github.repository_owner == 'dapr' # FOSSA is not intended to run on forks.
runs-on: ubuntu-latest
env:
FOSSA_API_KEY: b88e1f4287c3108c8751bf106fb46db6 # This is a push-only token that is safe to be exposed.
Expand All @@ -42,4 +43,4 @@ jobs:
uses: fossas/fossa-action@main # Use a specific version if locking is preferred
with:
api-key: ${{ env.FOSSA_API_KEY }}
run-tests: true
run-tests: true

0 comments on commit c085ca1

Please sign in to comment.