1
0
Fork 0
mirror of https://github.com/imjasonh/git-k8s synced 2026-07-09 23:27:01 +00:00
Commit graph

8 commits

Author SHA1 Message Date
copilot-swe-agent[bot]
78fe82845a Limit compile-workflows trigger to pull_request only
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-28 17:46:35 +00:00
copilot-swe-agent[bot]
d795654f97 Address code review comments on compile-workflows.yaml and code-review.md
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-28 17:42:30 +00:00
Claude
9b92b32530
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
2026-02-28 16:08:59 +00:00
Claude
02126d6ef2
Fix compile workflow: remove invalid workflows permission, use PAT
The workflows: write permission in the YAML permissions block is not
valid for GITHUB_TOKEN, which prevented the workflow from starting.

Pushing files under .github/workflows/ requires a PAT with the
workflows scope. The workflow now uses a GH_PAT secret (falling back
to GITHUB_TOKEN) for checkout and push. To set this up:

  Create a fine-grained PAT with Contents + Workflows read/write,
  then: gh secret set GH_PAT --body "<your-pat>"

https://claude.ai/code/session_01JTYNSeJrGzdW6wfAUbdjjw
2026-02-28 16:05:01 +00:00
Claude
dfacd609b5
Add workflows: write permission to compile workflow
The GITHUB_TOKEN needs the workflows permission to push changes to
files under .github/workflows/. Also add || true to git add glob
in case no lock files exist yet on first compile.

https://claude.ai/code/session_01JTYNSeJrGzdW6wfAUbdjjw
2026-02-28 16:02:27 +00:00
Claude
14f8a2f612
Fix compile workflow to commit lock files back to the branch
Instead of just failing when lock files are outdated, the workflow now
compiles the agentic workflow markdown files and commits+pushes the
resulting lock files back. On PRs, checks out the head branch directly
(not the merge ref) so it can push back to the PR.

https://claude.ai/code/session_01JTYNSeJrGzdW6wfAUbdjjw
2026-02-28 16:00:36 +00:00
Claude
24fad12ea9
Make compile workflow a check that fails on outdated lock files
Runs on both PRs and pushes to main. Compiles all agentic workflow
markdown files and fails if the resulting lock files differ from what's
committed. This ensures contributors run `gh aw compile` before merging.

https://claude.ai/code/session_01JTYNSeJrGzdW6wfAUbdjjw
2026-02-28 15:48:44 +00:00
Claude
a828ef7992
Add workflow to auto-compile agentic workflow lock files
Triggers on pushes to main that touch .github/workflows/*.md files.
Installs gh-aw, compiles all agentic workflow markdown files, and
commits the resulting .lock.yml files back to the repo.

https://claude.ai/code/session_01JTYNSeJrGzdW6wfAUbdjjw
2026-02-28 15:47:38 +00:00