Skip to content

Commit

Permalink
Restrict permissions to GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Jan 11, 2024
1 parent 798774c commit b896303
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/maven-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# clare all permissions for GITHUB_TOKEN
permissions: {}

jobs:

# verify build on one node - before matrix will start
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ on:

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
Expand Down

0 comments on commit b896303

Please sign in to comment.