Skip to content

Commit 1370381

Browse files
authored
chore: update CI workflows to use application token action (#9)
- Added a step to retrieve an application token in both `ci.yaml` and `release-please.yaml`. - Updated the token usage to include application ID and private key from secrets, along with necessary permissions for actions and packages. - Switched the release-please action to use the newly retrieved token for authentication.
1 parent 5b16148 commit 1370381

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/release-please.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ jobs:
1313
release-please:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3
16+
- name: Get Token
17+
id: get_actions_token
18+
uses: nominal-io/workflow-application-token-action@86d05551fa394b4b813e0deee328005b45cf5237 # v4.0.1
1719
with:
18-
token: ${{ secrets.GITHUB_TOKEN }}
20+
application_id: ${{secrets.NOMBOT_APP_ID}}
21+
application_private_key: ${{secrets.NOMBOT_PRIVATE_KEY}}
22+
permissions: "actions:write, packages:write, contents:write, pull_requests:write"
23+
organization: "nominal-io"
24+
25+
- uses: nominal-io/release-please-action@main
26+
with:
27+
token: ${{ steps.get_actions_token.outputs.token }}

0 commit comments

Comments
 (0)