Skip to content

Commit

Permalink
Deploy on push - Authorization token
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardnico committed Aug 24, 2024
1 parent 1838f66 commit 96aaa12
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ defaults:
run:
shell: bash

# We use a PAT
# https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
# because the GITHUB_TOKEN has only access to the Combostrap Organisation
# https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication
jobs:
check-commits:
runs-on: ubuntu-latest
Expand All @@ -22,11 +26,11 @@ jobs:
with:
repository: gerardnico/kube-argocd
path: kube-argocd
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.ARGOCD_GITHUB_TOKEN }}

- name: Update commit in Kubernetes deployment manifest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ARGOCD_GITHUB_TOKEN }}
run: |
cd kube-argocd || echo 'Fail Cd' & exit 1
echo "Patch Deployment with the last commit ($LAST_COMMIT)"
Expand Down

0 comments on commit 96aaa12

Please sign in to comment.