Skip to content

Commit

Permalink
Adjust workflow permissions (#110)
Browse files Browse the repository at this point in the history
* Adjust permissios for create-release action

* Adjust permissios for junit-report  action
  • Loading branch information
CarlesDD authored Aug 29, 2024
1 parent 76aa0ff commit 68dbe8b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
cpp-test-libc:
needs: ['build']
runs-on: ubuntu-latest
permissions:
checks: write
strategy:
matrix:
debian:
Expand All @@ -83,6 +85,8 @@ jobs:
cpp-test-musl:
needs: ['build']
runs-on: ubuntu-latest
permissions:
checks: write
strategy:
matrix:
alpine:
Expand Down Expand Up @@ -137,6 +141,8 @@ jobs:
artifact: darwin-x64

runs-on: ${{ matrix.target.os }}
permissions:
checks: write
env:
NPM_TAINTEDUTILS: true
steps:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
cpp-test-libc:
needs: ['build']
runs-on: ubuntu-latest
permissions:
checks: write
strategy:
matrix:
debian:
Expand All @@ -77,6 +79,8 @@ jobs:
cpp-test-musl:
needs: ['build']
runs-on: ubuntu-latest
permissions:
checks: write
strategy:
matrix:
alpine:
Expand Down Expand Up @@ -158,6 +162,8 @@ jobs:
artifact: darwin-x64

runs-on: ${{ matrix.target.os }}
permissions:
checks: write
env:
NPM_TAINTEDUTILS: true
steps:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
needs: pack
runs-on: ubuntu-latest
environment: release
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: codex-team/[email protected]
Expand Down

0 comments on commit 68dbe8b

Please sign in to comment.