Skip to content

Commit e7cc5d4

Browse files
authored
chore: GH workflow permissions (#532)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent c598eb9 commit e7cc5d4

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/php-dev.yml

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ concurrency:
2626
group: ${{ github.workflow }}-${{ github.ref }}
2727
cancel-in-progress: true
2828

29+
permissions: {}
30+
2931
env:
3032
PHP_VERSION_LATEST: "8.4"
3133
PHP_PROJECT_EXT: dom,filter,json,libxml,simplexml # via `composer info -pt`

.github/workflows/php.yml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ concurrency:
1717
group: '${{ github.workflow }}-${{ github.ref }}'
1818
cancel-in-progress: true
1919

20+
permissions: {}
21+
2022
env:
2123
PHP_VERSION_LOWEST: "8.1" # lowest supported
2224
PHP_VERSION_LATEST: "8.4" # highest supported

.github/workflows/release.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@ name: Release
2626
on:
2727
workflow_dispatch
2828

29+
permissions: {}
30+
2931
jobs:
3032
release:
3133
name: Release
32-
permissions: write-all
34+
permissions:
35+
id-token: write
36+
contents: write # to create a release
3337
runs-on: ubuntu-latest
3438
timeout-minutes: 10
3539
steps:

0 commit comments

Comments
 (0)