Limit scorecard to default branch

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2025-02-04 15:54:05 -05:00
committed by Spencer Schrock
parent f70f9c8252
commit 41e00af395
+2
View File
@@ -21,6 +21,8 @@ jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
# This action only works when run from the default branch
if: github.event.repository.default_branch == github.ref_name
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write