Skip to content

Commit 3cedd46

Browse files
authored
Fix PR workflow runs (#2123)
* Run scorecard workflow with models:read Signed-off-by: Spencer Wilson <[email protected]> * Remove all permissions for scorecard workflow Signed-off-by: Spencer Wilson <[email protected]> * Add security-events and id-token perms Signed-off-by: Spencer Wilson <[email protected]> * Clean up comments Signed-off-by: Spencer Wilson <[email protected]> * Update commit-to-main and weekly calls Signed-off-by: Spencer Wilson <[email protected]> --------- Signed-off-by: Spencer Wilson <[email protected]>
1 parent a7d698c commit 3cedd46

File tree

4 files changed

+1
-46
lines changed

4 files changed

+1
-46
lines changed

.github/workflows/commit-to-main.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,9 @@ jobs:
1515
scorecard:
1616
uses: ./.github/workflows/scorecard.yml
1717
secrets: inherit
18-
# complete list of permissions keys as per
19-
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token#defining-access-for-the-github_token-permissions
20-
# accessed September 4, 2024
2118
permissions:
22-
actions: read
23-
attestations: read
24-
checks: read
25-
contents: read
26-
deployments: read
2719
id-token: write
28-
issues: read
29-
discussions: read
30-
packages: read
31-
pages: read
32-
pull-requests: read
33-
repository-projects: read
3420
security-events: write
35-
statuses: read
3621

3722
basic-downstream:
3823
uses: ./.github/workflows/downstream-basic.yml

.github/workflows/pr.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,6 @@ jobs:
2222
needs: basic-checks
2323
uses: ./.github/workflows/scorecard.yml
2424
secrets: inherit
25-
# complete list of permissions keys as per
26-
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token#defining-access-for-the-github_token-permissions
27-
# accessed September 4, 2024
2825
permissions:
29-
actions: read
30-
attestations: read
31-
checks: read
32-
contents: read
33-
deployments: read
3426
id-token: write
35-
issues: read
36-
discussions: read
37-
packages: read
38-
pages: read
39-
pull-requests: read
40-
repository-projects: read
4127
security-events: write
42-
statuses: read

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Scorecard supply-chain security
22

3-
permissions: read-all
3+
permissions: {}
44

55
on:
66
# For Branch-Protection check. Only the default branch is supported. See

.github/workflows/weekly.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,9 @@ jobs:
1414
scorecard:
1515
uses: ./.github/workflows/scorecard.yml
1616
secrets: inherit
17-
# complete list of permissions keys as per
18-
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token#defining-access-for-the-github_token-permissions
19-
# accessed September 4, 2024
2017
permissions:
21-
actions: read
22-
attestations: read
23-
checks: read
24-
contents: read
25-
deployments: read
2618
id-token: write
27-
issues: read
28-
discussions: read
29-
packages: read
30-
pages: read
31-
pull-requests: read
32-
repository-projects: read
3319
security-events: write
34-
statuses: read
3520

3621
extended-tests:
3722
uses: ./.github/workflows/extended.yml

0 commit comments

Comments
 (0)