Skip to content

Commit

Permalink
[GHA] Replace token with CICD app
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigozhou committed May 29, 2024
1 parent a65b149 commit cbcb617
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/update-proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ on:
description: "Commit message"
required: true

permissions:
contents: write

jobs:
sync:
name: "Update proto"
Expand All @@ -30,10 +27,17 @@ jobs:
shell: bash

steps:
- name: Generate token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.TEMPORAL_CICD_APP_ID }}
private-key: ${{ secrets.TEMPORAL_CICD_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ github.generate_token.outputs.token }}
persist-credentials: true
ref: ${{ github.event.inputs.branch }}
submodules: true
Expand Down

0 comments on commit cbcb617

Please sign in to comment.