Limit scorecard to default branch
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
committed by
Spencer Schrock
parent
f70f9c8252
commit
41e00af395
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user