We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51ba0d commit 685d52aCopy full SHA for 685d52a
.github/workflows/deploy.yml
@@ -26,6 +26,9 @@ jobs:
26
name: Deploy to Kubernetes
27
runs-on: ubuntu-latest
28
environment: production
29
+ permissions:
30
+ contents: write # Allow writing to repository
31
+ actions: read
32
33
steps:
34
- name: Checkout Repository
@@ -77,4 +80,4 @@ jobs:
77
80
git config --local user.name "GitHub Action"
78
81
git add helm/values.yaml
79
82
git commit -m "Update image tag to ${{ inputs.image-tag || github.sha }}" || exit 0
- git push
83
+ git push https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
0 commit comments