File tree Expand file tree Collapse file tree 9 files changed +59
-44
lines changed
Expand file tree Collapse file tree 9 files changed +59
-44
lines changed Original file line number Diff line number Diff line change 22name : " Dependabot auto-merge"
33on : pull_request
44
5- permissions :
6- actions : write
7- contents : write
8- pull-requests : write
5+ permissions : {}
96
107jobs :
118 automerge :
9+ permissions :
10+ # Required to merge the PR
11+ contents : write
12+ # Required to merge the PR if it modifies a workflow
13+ actions : write
14+ # Required to approve the PR
15+ pull-requests : write
1216 runs-on : ubuntu-latest
1317 if : ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
1418 steps :
Original file line number Diff line number Diff line change @@ -20,16 +20,12 @@ jobs:
2020 # Consider using larger runners or machines with greater resources for possible analysis time improvements.
2121 runs-on : ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
2222 permissions :
23- # required for all workflows
24- security-events : write
25-
26- # required to fetch internal or private CodeQL packs
27- packages : read
28-
29- # only required for workflows in private repositories
23+ # for github/codeql-action/init to get workflow details
3024 actions : read
25+ # for actions/checkout to fetch code
3126 contents : read
32-
27+ # for github/codeql-action/autobuild to send a status report
28+ security-events : write
3329 strategy :
3430 fail-fast : false
3531 matrix :
6056
6157 # Initializes the CodeQL tools for scanning.
6258 - name : Initialize CodeQL
63- uses : github/codeql-action/init@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
59+ uses : github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
6460 with :
6561 languages : ${{ matrix.language }}
6662 build-mode : ${{ matrix.build-mode }}
7268 # queries: security-extended,security-and-quality
7369
7470 - name : Perform CodeQL Analysis
75- uses : github/codeql-action/analyze@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
71+ uses : github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
7672 with :
7773 category : " /language:${{matrix.language}}"
Original file line number Diff line number Diff line change 22name : " Dependency Review"
33on : [pull_request]
44
5- permissions :
6- contents : read
5+ permissions : {}
76
87jobs :
98 dependency-review :
9+ permissions :
10+ # Required to read the code
11+ contents : read
1012 runs-on : ubuntu-latest
1113 steps :
1214 - name : " Checkout Repository"
1315 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1416 with :
1517 persist-credentials : false
1618 - name : " Dependency Review"
17- uses : actions/dependency-review-action@0659a74c94536054bfa5aeb92241f70d680cc78e # v4
19+ uses : actions/dependency-review-action@595b5aeba73380359d98a5e087f648dbb0edce1b # v4.7.3
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ name: DevSkim
88
99on :
1010 push :
11- branches : ["main "]
11+ branches : ["gh-pages "]
1212 pull_request :
13- branches : ["main "]
13+ branches : ["gh-pages "]
1414 schedule :
1515 - cron : " 0 0 * * 0"
1616
@@ -21,20 +21,20 @@ jobs:
2121 name : DevSkim
2222 runs-on : ubuntu-latest
2323 permissions :
24- actions : read
24+ # required to read the code
2525 contents : read
26+ # required to publish security findings
2627 security-events : write
2728 steps :
2829 - name : Checkout code
2930 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3031 with :
3132 persist-credentials : false
32-
3333 - name : Run DevSkim scanner
3434 uses : microsoft/DevSkim-Action@4b5047945a44163b94642a1cecc0d93a3f428cc6 # v1.0.16
35-
36- - name : Upload DevSkim scan results to GitHub Security tab
37- uses : github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
3835 with :
3936 should-scan-archives : true
37+ - name : Upload DevSkim scan results to GitHub Security tab
38+ uses : github/codeql-action/upload-sarif@192325c86100d080feab897ff886c34abd4c83a3 # v3.29.5
39+ with :
4040 sarif_file : devskim-results.sarif
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ name: MSDO
88
99on :
1010 push :
11- branches : ["main "]
11+ branches : ["gh-pages "]
1212 pull_request :
13- branches : ["main "]
13+ branches : ["gh-pages "]
1414 schedule :
1515 - cron : " 0 0 * * 0"
1616
Original file line number Diff line number Diff line change @@ -14,21 +14,22 @@ name: OSV-Scanner
1414
1515on :
1616 pull_request :
17- branches : ["main "]
17+ branches : ["gh-pages "]
1818 push :
19- branches : ["main "]
19+ branches : ["gh-pages "]
2020 schedule :
2121 - cron : " 0 0 * * 0"
2222 workflow_dispatch :
2323
24- permissions :
25- # Require writing security events to upload SARIF file to security tab
26- security-events : write
27- # Read commit contents
28- contents : read
29- # Actions read-only
30- actions : read
24+ permissions : {}
3125
3226jobs :
3327 osv-scanner :
34- uses : " google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@e69cc6c86b31f1e7e23935bbe7031b50e51082de" # v2.0.2
28+ permissions :
29+ # Required to upload the SARIF file to the security tab
30+ security-events : write
31+ # Required to read the code
32+ contents : read
33+ # Required to read the code
34+ actions : read
35+ uses : " google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@90b209d0ea55cea1da9fc0c4e65782cc6acb6e2e" # v2.2.2
Original file line number Diff line number Diff line change @@ -3,21 +3,27 @@ name: Scorecards supply-chain security
33on :
44 push :
55 branches :
6- - main
6+ - gh-pages
77 - " releases/**"
88 schedule :
99 - cron : " 0 0 * * 0"
1010 workflow_dispatch :
1111
12- permissions : read-all
12+ permissions : {}
1313
1414jobs :
1515 scorecards :
1616 name : Scorecards analysis
1717 runs-on : ubuntu-latest
1818 permissions :
19- security-events : write
19+ # Required to read the code
20+ actions : read
21+ # Required to read the code
22+ contents : read
23+ # Required to sign the SARIF file
2024 id-token : write
25+ # Required to upload the SARIF file to the security tab
26+ security-events : write
2127 steps :
2228 - name : " Checkout code"
2329 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
Original file line number Diff line number Diff line change 3737 # Grant status permission for MULTI_STATUS #
3838 # ###########################################
3939 permissions :
40+ # Required to read the code
4041 contents : read
42+ # Required to access the container image
4143 packages : read
44+ # Required to write the status
4245 statuses : write
4346
4447 # #################
6467 env :
6568 VALIDATE_ALL_CODEBASE : true
6669 LINTER_RULES_PATH : .
67- DEFAULT_BRANCH : main
70+ DEFAULT_BRANCH : gh-pages
6871 FILTER_REGEX_EXCLUDE : " (_layouts/default\\ .html)$"
6972 ENFORCE_COMMITLINT_CONFIGURATION_CHECK : true
7073 GITHUB_ACTIONS_ZIZMOR_CONFIG_FILE : .zizmor.yml
Original file line number Diff line number Diff line change 77 - cron : " 0 0 * * *"
88 workflow_dispatch :
99
10- permissions :
11- pull-requests : write
12- contents : write
10+ permissions : {}
1311
1412jobs :
1513 update-prs :
1614 if : startsWith(github.ref, 'refs/heads/')
15+ permissions :
16+ # Required to update the PR
17+ pull-requests : write
18+ # Required to update the PR branch
19+ contents : write
1720 runs-on : ubuntu-latest
1821 steps :
1922 - name : Update Pull Requests
20- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7 .0.1
23+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 .0.0
2124 with :
2225 script : |
2326 const opts = github.rest.pulls.list.endpoint.merge({
You can’t perform that action at this time.
0 commit comments