Skip to content

Commit

Permalink
Update trigger-publish GHA (#4599)
Browse files Browse the repository at this point in the history
<!-- Describe what has changed in this PR -->
**What changed?**
Update trigger-publish GHA token management via GitHub App.
Following the
https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/making-authenticated-api-requests-with-a-github-app-in-a-github-actions-workflow

<!-- Tell your future self why have you made these changes -->
**Why?**
Switching to org-level management

<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
**How did you test it?**
CI

<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->
**Potential risks**


<!-- Is this PR a hotfix candidate or require that a notification be
sent to the broader community? (Yes/No) -->
**Is hotfix candidate?**
  • Loading branch information
mindaugasrukas committed Jul 12, 2023
1 parent 81aa534 commit c61ede4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/trigger-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,17 @@ jobs:
id: get_branch
run: |
echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
- name: Generate a token
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.TEMPORAL_CICD_APP_ID }}
private_key: ${{ secrets.TEMPORAL_CICD_PRIVATE_KEY }}

- name: Dispatch docker builds Github Action
env:
PAT: ${{ secrets.COMMANDER_DATA_TOKEN }}
PAT: ${{ steps.generate_token.outputs.token }}
PARENT_REPO: temporalio/docker-builds
PARENT_BRANCH: ${{ toJSON('main') }}
WORKFLOW_ID: update-submodules.yml
Expand Down

0 comments on commit c61ede4

Please sign in to comment.