Skip to content

Commit

Permalink
update permissions for GH release actions (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdacamar authored Sep 23, 2024
1 parent 198553f commit 1651a9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/on-main-branch-change.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
build_draft_pdf:
runs-on: ubuntu-latest
permissions:
contents: write # Note: Needed in order to generate a tag on the associated commit.
steps:
- name: Set up Git repository
uses: actions/checkout@v4
Expand All @@ -33,7 +35,6 @@ jobs:
- name: Create prerelease
uses: ncipollo/release-action@v1
with:
token: "${{ secrets.GITHUB_TOKEN }}"
allowUpdates: true
name: Prerelease
prerelease: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/on-release-branch-change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # Note: Needed in order to generate a tag on the associated commit.
steps:
- name: Set up Git repository
uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/on-release-created.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
create_branch:
runs-on: ubuntu-latest
permissions:
contents: write # Note: Needed in order to generate a tag on the associated commit.
steps:
- uses: peterjgrainger/action-create-branch@v2.0.1
env:
Expand Down

0 comments on commit 1651a9e

Please sign in to comment.