Skip to content

Commit 9979b57

Browse files
committed
actions: restrict permissions in jobs
1 parent bdc39a2 commit 9979b57

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/buildwheel.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
env:
69
# These four values need to be kept in sync. Each pyodide version pins an
710
# emscripten version and a CPython version.
@@ -155,6 +158,7 @@ jobs:
155158
needs: build_wheels
156159
name: Test ${{ matrix.python-version }} wheel on ${{ matrix.os }}
157160
runs-on: ${{ matrix.os }}
161+
permissions: {}
158162
strategy:
159163
fail-fast: false
160164
matrix:
@@ -200,6 +204,7 @@ jobs:
200204
needs: build_wheels
201205
name: Test Pyodide wheel
202206
runs-on: ubuntu-22.04
207+
permissions: {}
203208

204209
steps:
205210
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
@@ -400,6 +405,7 @@ jobs:
400405
# Run on push/merge to main
401406
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
402407
runs-on: ubuntu-latest
408+
permissions: {}
403409

404410
steps:
405411
# Downloads all artifacts

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Linting
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
lint:
710
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)