1
0
Fork 0
mirror of https://github.com/imjasonh/git-k8s synced 2026-07-12 08:28:38 +00:00

Use GH_PAT directly for compile workflow

Now that the PAT secret is configured, use it directly instead of
the fallback expression. Also removed the permissions block since
the PAT handles authorization.

https://claude.ai/code/session_01JTYNSeJrGzdW6wfAUbdjjw
This commit is contained in:
Claude 2026-02-28 16:08:59 +00:00
parent 02126d6ef2
commit 9b92b32530
No known key found for this signature in database

View file

@ -10,10 +10,6 @@ on:
paths:
- ".github/workflows/*.md"
permissions:
contents: write
pull-requests: write
jobs:
compile:
name: Compile
@ -24,26 +20,24 @@ jobs:
if: github.event_name == 'push'
uses: actions/checkout@v4
with:
# A PAT with workflows scope is required to push .lock.yml
# files under .github/workflows/.
token: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_PAT }}
- name: Checkout (PR head branch)
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_PAT }}
- name: Install gh-aw extension
run: gh extension install github/gh-aw
env:
GH_TOKEN: ${{ secrets.GH_PAT || github.token }}
GH_TOKEN: ${{ secrets.GH_PAT }}
- name: Compile all agentic workflows
run: gh aw compile .github/workflows/*.md
env:
GH_TOKEN: ${{ secrets.GH_PAT || github.token }}
GH_TOKEN: ${{ secrets.GH_PAT }}
- name: Commit and push lock files if changed
run: |