Limit scorecard to default branch

Signed-off-by: Josh Soref <[email protected]>
This commit is contained in:
Josh Soref
2025-02-24 11:32:28 -07:00
committed by Spencer Schrock
parent f70f9c8252
commit 41e00af395
+2
View File
@@ -21,6 +21,8 @@ jobs:
analysis: analysis:
name: Scorecard analysis name: Scorecard analysis
runs-on: ubuntu-latest runs-on: ubuntu-latest
# This action only works when run from the default branch
if: github.event.repository.default_branch == github.ref_name
permissions: permissions:
# Needed to upload the results to code-scanning dashboard. # Needed to upload the results to code-scanning dashboard.
security-events: write security-events: write