Skip to content

Commit

Permalink
update release PR workflow token (#459)
Browse files Browse the repository at this point in the history
* update release PR workflow token

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Adjust permissions

Signed-off-by: jamshale <jamiehalebc@gmail.com>

---------

Signed-off-by: jamshale <jamiehalebc@gmail.com>
  • Loading branch information
jamshale committed May 15, 2024
1 parent 3725a70 commit ae204d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/create-release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ on:
- cron: "0 0 * * *"


permissions:
contents: write

jobs:
checks:
name: "Create Release PR"
permissions: write-all
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
outputs:
current_available_version: ${{ steps.current_available_version.outputs.version }}
Expand Down Expand Up @@ -360,7 +359,7 @@ jobs:
with:
author: Release Bot <release-bot@users.noreply.github.com>
committer: Release Bot <release-bot@users.noreply.github.com>
token: ${{ secrets.BOT_PR_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Release v${{ steps.prepare_pr.outputs.tag_version }} Upgrades"
title: "Release for aries-cloudagent v${{ steps.prepare_pr.outputs.tag_version }}"
body: "${{ steps.prepare_pr.outputs.pr_body }}"
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ on:
branches: ['main']
paths: ['*/poetry.lock']

permissions:
contents: write

jobs:

checks:
name: "Create Release"
permissions: write-all
permissions:
contents: write
runs-on: ubuntu-latest
outputs:
should_create_release: ${{ steps.should_create_release.outputs.should_create_release }}
Expand Down

0 comments on commit ae204d9

Please sign in to comment.