Skip to content

Commit

Permalink
ci: Add permissions for publish_release job
Browse files Browse the repository at this point in the history
This commit adds write permission for contents and read permission for issues to the publish_release job in the rust.yml workflow file.
  • Loading branch information
jabibamman committed Feb 15, 2024
1 parent 8555749 commit aae3015
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
pull_request:
branches:
- develop

env:
CARGO_TERM_COLOR: always

Expand Down Expand Up @@ -41,6 +42,9 @@ jobs:
publish_release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
issues: read
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit aae3015

Please sign in to comment.