Skip to content

Commit 9fc6e51

Browse files
authored
chore(ci): enable protected branch auditing (aws-powertools#2913)
1 parent 6df9b1d commit 9fc6e51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ossf_scorecard.yml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
analysis:
1616
name: Scorecard analysis
1717
runs-on: ubuntu-latest
18+
environment: scorecard
1819
permissions:
1920
security-events: write # update code-scanning dashboard
2021
id-token: write # confirm org+repo identity before publish results
@@ -31,6 +32,7 @@ jobs:
3132
results_file: results.sarif
3233
results_format: sarif
3334
publish_results: true # publish to OSSF Scorecard REST API
35+
repo_token: ${{ secrets.SCORECARD_TOKEN }} # read-only fine-grained token to read branch protection settings
3436

3537
- name: "Upload results"
3638
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2

0 commit comments

Comments
 (0)