Skip to content

Commit b3adaf4

Browse files
committed
Add least-privilege permissions to CI workflow
1 parent a98f9d6 commit b3adaf4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/cibuildwheel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions: {}
1313

1414
jobs:
1515
build_wheels:
16-
uses: explosion/gha-cibuildwheel/.github/workflows/cibuildwheel.yml@2c98f757f13d112cf73fcf4b627249f1fffb5aae # main
16+
uses: explosion/gha-cibuildwheel/.github/workflows/cibuildwheel.yml@d0d89c035a9cd4b9b847b179c88508d7cbee965f # main
1717
permissions:
1818
contents: write
1919
actions: read

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
branches: ["*"]
88
workflow_dispatch:
99

10-
permissions: {}
10+
permissions:
11+
contents: read
1112

1213
concurrency:
1314
group: tests-${{ github.ref }}

0 commit comments

Comments
 (0)