Limit scorecard to default branch
Signed-off-by: Josh Soref <[email protected]>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user