Skip to content

Commit

Permalink
[VULN-8074] added GH token write permissions for the release job (#134)
Browse files Browse the repository at this point in the history
* added GH token write permissions for release job
* added default permissions for release workflow
  • Loading branch information
ypopovych authored Sep 12, 2024
1 parent 69ebb5e commit 93a3a44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/createRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [created]

permissions:
contents: read

jobs:
test:
name: Run Tests
Expand All @@ -25,6 +28,8 @@ jobs:
release:
needs: [test]
runs-on: macos-13
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 93a3a44

Please sign in to comment.