Skip to content

Commit a26cc42

Browse files
committed
More github actions permissions work
1 parent d0a5e1b commit a26cc42

27 files changed

+52
-18
lines changed

.github/workflows/auto-update-otel-sdk.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- cron: "46 * * * *"
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
check-versions:
1114
runs-on: ubuntu-latest
@@ -44,7 +47,7 @@ jobs:
4447
4548
update-otel-sdk:
4649
permissions:
47-
contents: write # for Git to git push
50+
contents: write # for git push to PR branch
4851
runs-on: ubuntu-latest
4952
if: |
5053
needs.check-versions.outputs.current-version != needs.check-versions.outputs.latest-version &&

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
backport:
1414
permissions:
15-
contents: write # for Git to git push
15+
contents: write # for git push to PR branch
1616
runs-on: ubuntu-latest
1717
steps:
1818
- run: |

.github/workflows/build-daily-no-build-cache.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333

3434
workflow-notification:
3535
permissions:
36+
contents: read
3637
issues: write
3738
needs:
3839
- common

.github/workflows/build-daily.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636

3737
workflow-notification:
3838
permissions:
39+
contents: read
3940
issues: write
4041
needs:
4142
- common

.github/workflows/codeql-daily.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ permissions:
1212
jobs:
1313
analyze:
1414
permissions:
15+
contents: read
1516
actions: read # for github/codeql-action/init to get workflow details
1617
security-events: write # for github/codeql-action/analyze to upload SARIF results
1718
runs-on: ubuntu-latest
@@ -48,6 +49,7 @@ jobs:
4849

4950
workflow-notification:
5051
permissions:
52+
contents: read
5153
issues: write
5254
needs:
5355
- analyze

.github/workflows/issue-management-feedback-label.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ on:
44
issue_comment:
55
types: [created]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
issue_comment:
12+
permissions:
13+
contents: read
14+
issues: write
915
if: >
1016
contains(github.event.issue.labels.*.name, 'needs author feedback') &&
1117
github.event.comment.user.login == github.event.issue.user.login

.github/workflows/issue-management-stale-action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111
jobs:
1212
stale:
1313
permissions:
14+
contents: read
1415
issues: write # for actions/stale to close stale issues
1516
pull-requests: write # for actions/stale to close stale PRs
1617
runs-on: ubuntu-latest

.github/workflows/label.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ permissions:
66

77
jobs:
88
label:
9-
109
runs-on: ubuntu-latest
1110
permissions:
1211
contents: read
1312
pull-requests: write
14-
1513
steps:
1614
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
1715
with:

.github/workflows/native-tests-daily.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717

1818
workflow-notification:
1919
permissions:
20+
contents: read
2021
issues: write
2122
needs:
2223
- graalvm-native-tests

.github/workflows/overhead-benchmark-daily.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
jobs:
1212
run-overhead-tests:
1313
permissions:
14-
contents: write # for writing to the gh-pages branch
14+
contents: write # for git push to gh-pages branch
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -56,6 +56,7 @@ jobs:
5656

5757
workflow-notification:
5858
permissions:
59+
contents: read
5960
issues: write
6061
needs:
6162
- run-overhead-tests

0 commit comments

Comments
 (0)