Skip to content

Commit

Permalink
try a different token
Browse files Browse the repository at this point in the history
  • Loading branch information
james-jdgtl committed Nov 29, 2024
1 parent ca52242 commit 4969f98
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ jobs:
version=$(date '+%Y-%m-%d').${{ github.run_number }}.$(echo ${{ github.sha }} | cut -c1-7)
echo "version=$version" | tee -a "$GITHUB_OUTPUT"
- uses: actions/create-github-app-token@v1
id: github-app-token
- name: GitHub app JWT and installation access token generation
uses: jamestrousdale/[email protected]
id: generate-github-app-tokens
with:
app-id: ${{ vars.GH_APP_ID }}
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}

- name: Build Docker images
Expand All @@ -55,4 +56,4 @@ jobs:
project: ${{ matrix.project }}
push: ${{ env.push }}
version: ${{ steps.version.outputs.version }}
gh_auth_token: ${{ steps.github-app-token.outputs.token }}
gh_auth_token: ${{ steps.generate-github-app-tokens.outputs.access-token }}
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ jobs:
with:
environment: ${{ inputs.environment }}

- uses: actions/create-github-app-token@v1
id: github-app-token
- name: GitHub app JWT and installation access token generation
uses: jamestrousdale/[email protected]
id: generate-github-app-tokens
with:
app-id: ${{ vars.GH_APP_ID }}
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}

- name: Deploy to Platform
Expand All @@ -56,7 +57,7 @@ jobs:
cluster: ${{ secrets.KUBE_CLUSTER }}
namespace: ${{ secrets.KUBE_NAMESPACE }}
token: ${{ secrets.KUBE_TOKEN }}
gh_auth_token: ${{ steps.github-app-token.outputs.token }}
gh_auth_token: ${{ steps.generate-github-app-tokens.outputs.access-token }}
github_repository: ${{ vars.GH_REPOSITORY }}
runner_labels: ${{ vars.RUNNER_LABELS }}

Expand Down

0 comments on commit 4969f98

Please sign in to comment.