Skip to content

Commit a78e986

Browse files
committed
Fix GitHub actions permissions
1 parent 603425f commit a78e986

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
# .github/workflows/ci/workflow_template.yml
44
#
55

6-
name: CI
76

8-
permissions:
9-
contents: read
10-
id-token: write
7+
name: CI
118

129
on:
1310
push:
@@ -842,6 +839,9 @@ jobs:
842839
name: Release
843840
environment: release
844841
runs-on: ubuntu-latest
842+
permissions:
843+
contents: write
844+
id-token: write
845845
needs: [analyze, test_linux, test_macos, test_windows, test_python_38, test_python_310, test_qt_gui, test_packaging, build_linux, build_macos, build_windows]
846846
if: >-
847847
!cancelled()

.github/workflows/ci/workflow_template.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11

22
name: CI
33

4-
permissions:
5-
contents: read
6-
id-token: write
7-
84
on:
95
push:
106
branches:
@@ -276,6 +272,9 @@ jobs:
276272
name: Release
277273
environment: release
278274
runs-on: ubuntu-latest
275+
permissions:
276+
contents: write
277+
id-token: write
279278
needs: [analyze, <@ jobs|join(', ', attribute='id') @>]
280279
if: >-
281280
!cancelled()

0 commit comments

Comments
 (0)