Skip to content

Commit e97b126

Browse files
committed
add explicit permissions
1 parent 1231877 commit e97b126

7 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/audit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ on:
3636
schedule:
3737
- cron: '0 0 * * *'
3838

39+
permissions:
40+
contents: read
41+
3942
jobs:
4043
security_audit:
4144
runs-on: ubuntu-latest

.github/workflows/bindings_python_ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ concurrency:
4040
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
4141
cancel-in-progress: true
4242

43+
permissions:
44+
contents: read
45+
4346
jobs:
4447
check-rust:
4548
runs-on: ubuntu-latest

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ concurrency:
4040
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
4141
cancel-in-progress: true
4242

43+
permissions:
44+
contents: read
45+
4346
jobs:
4447
check:
4548
runs-on: ${{ matrix.os }}

.github/workflows/ci_typos.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ concurrency:
3232
env:
3333
RUST_BACKTRACE: 1
3434

35+
permissions:
36+
contents: read
37+
3538
jobs:
3639
typos-check:
3740
name: typos check

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,15 @@ on:
2727
schedule:
2828
- cron: '16 4 * * 1'
2929

30+
permissions:
31+
contents: read
32+
3033
jobs:
3134
analyze:
3235
name: Analyze Actions
3336
runs-on: ubuntu-latest
3437
permissions:
38+
contents: read
3539
security-events: write
3640
packages: read
3741

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ on:
2626
- "v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+"
2727
workflow_dispatch:
2828

29+
permissions:
30+
contents: read
31+
2932
jobs:
3033
publish:
3134
runs-on: ubuntu-latest

.github/workflows/website.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ concurrency:
3030
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
3131
cancel-in-progress: true
3232

33+
permissions:
34+
contents: read
35+
3336
jobs:
3437
build:
3538
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)