Skip to content

Commit 42e72d8

Browse files
Potential fix for pull request finding 'CodeQL / Workflow does not contain permissions'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 0d26d4d commit 42e72d8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/automated-releases.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ permissions:
2323
env:
2424
GO_VERSION: '1.24'
2525

26+
permissions:
27+
contents: read
28+
2629
jobs:
2730
check-permissions:
2831
name: Check Release Permissions
@@ -142,6 +145,8 @@ jobs:
142145
143146
release-v2:
144147
name: Create v2 Release
148+
permissions:
149+
contents: write
145150
runs-on: ubuntu-latest
146151
needs: [check-permissions, detect-v2-changes]
147152
if: |
@@ -234,6 +239,8 @@ jobs:
234239
235240
release-v3:
236241
name: Create v3-alpha Release
242+
permissions:
243+
contents: write
237244
runs-on: ubuntu-latest
238245
needs: [check-permissions, detect-v3-changes]
239246
if: |

0 commit comments

Comments
 (0)