Skip to content

Commit 57ff47b

Browse files
authored
Merge pull request #966 from bastelfreak/releae
CI jobs: Add explicit token permissions
2 parents 16f32cf + 09b5995 commit 57ff47b

7 files changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- master
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
unit:
1215
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
tags:
77
- '*'
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
release:
1114
runs-on: ubuntu-24.04

.github/workflows/update.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
tags:
88
- '*'
99

10+
permissions:
11+
contents: read
12+
1013
env:
1114
GIT_AUTHOR_NAME: pccibot
1215
GIT_AUTHOR_EMAIL: [email protected]

moduleroot/.github/workflows/ci.yml.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ concurrency:
1717
group: ${{ github.ref_name }}
1818
cancel-in-progress: true
1919

20+
permissions:
21+
contents: read
22+
2023
jobs:
2124
puppet:
2225
name: Puppet

moduleroot/.github/workflows/labeler.yml.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ name: "Pull Request Labeler"
88
on:
99
pull_request_target: {}
1010

11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
1115
jobs:
1216
labeler:
1317
permissions:

moduleroot/.github/workflows/prepare_release.yml.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
description: 'Module version to be released. Must be a valid semver string without leading v. (1.2.3)'
1212
required: false
1313

14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
1418
jobs:
1519
release_prep:
1620
uses: 'voxpupuli/gha-puppet/.github/workflows/prepare_release.yml@v3'

moduleroot/.github/workflows/release.yml.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
tags:
1111
- '*'
1212

13+
permissions:
14+
contents: write
15+
1316
jobs:
1417
release:
1518
name: Release

0 commit comments

Comments
 (0)