Skip to content

Commit 50ba174

Browse files
committed
ci: Update workflow permissions (#7731)
Now that default permissions are read-only, we must enable specific permissions for certain workflow jobs. This fixes every job except "update screenshots", which has unresolved permissions issues.
1 parent 88dea48 commit 50ba174

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/deflake.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
1717
runs-on: ubuntu-latest
1818

19+
permissions:
20+
# "Write" to Actions to enable rerun command.
21+
actions: write
22+
1923
steps:
2024
- name: Check run count and re-run workflow
2125
env:

.github/workflows/selenium-lab-tests.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ jobs:
145145
name: Pre-build Player
146146
needs: compute-sha
147147
runs-on: ubuntu-latest
148+
149+
permissions:
150+
# "Write" to statuses to update commit status
151+
statuses: write
152+
148153
steps:
149154
- uses: actions/checkout@v4
150155
with:
@@ -209,6 +214,10 @@ jobs:
209214
# lab's Selenium grid on port 4444.
210215
runs-on: self-hosted-selenium
211216

217+
permissions:
218+
# "Write" to statuses to update commit status
219+
statuses: write
220+
212221
# Only one run of this job is allowed at a time, since it uses physical
213222
# resources in our lab.
214223
concurrency:

.github/workflows/update-issues.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
# Run every 30 minutes
99
- cron: '*/30 * * * *'
1010

11-
permissions:
12-
issues: write
13-
pull-requests: write
14-
1511
jobs:
1612
update-issues:
1713
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)