From c085ca1886d4f14c28b8084067c40a473780a973 Mon Sep 17 00:00:00 2001 From: Shubham Sharma Date: Tue, 15 Mar 2022 15:02:46 +0530 Subject: [PATCH] Update FOSSA workflow condition to not run on Forks (#706) * Add workflow and badge Signed-off-by: Shubham Sharma * Encode space in URL Signed-off-by: Shubham Sharma * Update FOSSA workflow condition Signed-off-by: Shubham Sharma Signed-off-by: Subash Gamage --- .github/workflows/fossa.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml index 9e97442de..e1fc57a0b 100644 --- a/.github/workflows/fossa.yml +++ b/.github/workflows/fossa.yml @@ -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 \ No newline at end of file + run-tests: true