Skip to content

Commit 964c805

Browse files
committed
fix: use GITHUB_EVENT_PATH instead of gh CLI for issue data
The gh CLI requires GH_TOKEN which the compiler strips from custom step env blocks. The webhook event payload at GITHUB_EVENT_PATH already contains the full issue data - no API call needed.
1 parent 8bca74b commit 964c805

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/flock-action.lock.yml

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/flock-action.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ steps:
3434
- name: Fetch issue data
3535
run: |
3636
mkdir -p /tmp/gh-aw/agent
37-
ISSUE_NUMBER=$(jq -r '.issue.number' "$GITHUB_EVENT_PATH")
38-
gh issue view "$ISSUE_NUMBER" --repo "$GITHUB_REPOSITORY" --json number,title,body,labels > /tmp/gh-aw/agent/issue.json
37+
jq '{number: .issue.number, title: .issue.title, body: .issue.body, labels: .issue.labels}' "$GITHUB_EVENT_PATH" > /tmp/gh-aw/agent/issue.json
3938
4039
safe-outputs:
4140
create-pull-request:

0 commit comments

Comments
 (0)