Skip to content

Commit 4fe7302

Browse files
authored
Fix #891: add default workflow permissions (#898)
1 parent a56c2b7 commit 4fe7302

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.github/workflows/ci-build-checks.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ on:
2424
types:
2525
- checks_requested
2626

27+
permissions: read-all
28+
2729
jobs:
2830
wheel-build:
2931
name: Wheel test

.github/workflows/ci-file-checks.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ concurrency:
8383
cancel-in-progress: true
8484
group: ${{github.workflow}}-${{github.event.pull_request.number||github.ref}}
8585

86+
permissions: read-all
87+
8688
jobs:
8789
Changes:
8890
runs-on: ubuntu-24.04

.github/workflows/ci-nightly-build-test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ concurrency:
6969
cancel-in-progress: true
7070
group: ${{github.workflow}}-${{github.event.pull_request.number||github.ref}}
7171

72+
permissions: read-all
73+
7274
jobs:
7375
Decision:
7476
runs-on: ubuntu-24.04

.github/workflows/ci-nightly-cirq-test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ concurrency:
8383
cancel-in-progress: true
8484
group: ${{github.workflow}}-${{github.event.pull_request.number||github.ref}}
8585

86+
permissions: read-all
87+
8688
jobs:
8789
test-compatibility:
8890
name: Run TFQ tests

0 commit comments

Comments
 (0)