Skip to content

Commit 4390ece

Browse files
authored
chore: GH workflow permissions (#557)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent eccdd1c commit 4390ece

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/php-dev.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ concurrency:
2424
group: '${{ github.workflow }}-${{ github.ref }}'
2525
cancel-in-progress: true
2626

27+
permissions: {}
28+
2729
env:
2830
PHP_VERSION_LATEST: "8.4"
2931
PHP_PROJECT_EXT: dom,json,libxml # via `composer info -pt`

.github/workflows/php.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
# this means: at 23:42
1414
- cron: '42 23 * * *'
1515

16+
permissions: {}
17+
1618
concurrency:
1719
group: '${{ github.workflow }}-${{ github.ref }}'
1820
cancel-in-progress: true

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
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: 30
3539
steps:

0 commit comments

Comments
 (0)