Skip to content

Commit 15781e4

Browse files
committed
Update permissions in docker-publish workflow
1 parent e68dc65 commit 15781e4

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/docker-publish.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
if: github.event_name == 'push'
4646

4747
permissions:
48-
contents: read
48+
contents: write
4949
packages: write
5050

5151
steps:
@@ -105,11 +105,7 @@ 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
110-
run: |
111-
git config user.name Niraj
112-
git config user.email niraj@appcd.com
113-
git add ./gitops
114-
git commit -m "chore: update gitops/ with updated k8s specs"
115-
git push
108+
uses: stefanzweifel/git-auto-commit-action@v5
109+
with:
110+
file_pattern: ./gitops/
111+
commit_message: "chore: update gitops"

0 commit comments

Comments
 (0)