1
0
Fork 0
mirror of https://github.com/imjasonh/git-k8s synced 2026-07-10 23:51:58 +00:00

Address code review comments on compile-workflows.yaml and code-review.md

Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-02-28 17:42:30 +00:00
parent 419651317f
commit d795654f97
2 changed files with 9 additions and 3 deletions

View file

@ -30,6 +30,7 @@ safe-outputs:
tools:
github:
lockdown: true
toolsets: [pull_requests, repos]
bash: true
web-fetch:

View file

@ -14,23 +14,28 @@ jobs:
compile:
name: Compile
runs-on: ubuntu-latest
# Skip fork PRs: secrets are unavailable, and we should not compile
# untrusted .md content from a fork and push it back.
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false)
permissions:
contents: read # checkout; push uses GH_PAT explicitly
steps:
- name: Checkout (push)
if: github.event_name == 'push'
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
token: ${{ secrets.GH_PAT }}
- name: Checkout (PR head branch)
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_PAT }}
- name: Install gh-aw extension
run: gh extension install github/gh-aw
run: gh extension install github/gh-aw --version v0.50.7
env:
GH_TOKEN: ${{ secrets.GH_PAT }}