Update FOSSA workflow condition to not run on Forks (#706)

* Add workflow and badge

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Encode space in URL

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Update FOSSA workflow condition

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
This commit is contained in:
Shubham Sharma 2022-03-15 15:02:46 +05:30 committed by GitHub
parent eb215fbb3b
commit 904dbe0b18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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.
@ -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