Skip to content

Commit 328c5e1

Browse files
committed
use PAT to allow commits from workflows on main branch
1 parent 78d80ff commit 328c5e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ jobs:
105105
106106
# in real apps the gitops config and spec would in be a separate repo
107107
- name: Commit changes to gitops/
108+
env:
109+
GITHUB_TOKEN: ${{ secrets.PAT }} # PAT created with niraj8's account to allow push to main, not ideal but works for demos
108110
run: |
109111
git config user.name github-actions
110112
git config user.email github-actions@github.com

0 commit comments

Comments
 (0)