Create poc.yml - #1
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds a GitHub Actions workflow triggered by Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Warning |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/poc.yml:
- Line 2: Remove the credential-exfiltration behavior from the workflow by
deleting the outbound curl request and any steps that expose GITHUB_TOKEN or
API_KEY. Change the workflow trigger from pull_request_target to pull_request so
fork PRs run without base-repository credentials, and rotate API_KEY if this
workflow has already executed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 449edd45-a68f-4d4f-9da0-0bf695bb17fb
📒 Files selected for processing (1)
.github/workflows/poc.yml
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
netlify/blueprints(manual) → reviewed against branchmaininstead of the default branch
| @@ -0,0 +1,29 @@ | |||
| name: poc | |||
| on: [push, pull_request_target] | |||
There was a problem hiding this comment.
🔒 Security & Privacy | 🔴 Critical | ⚡ Quick win
Remove the credential-exfiltration workflow immediately.
pull_request_target lets fork PR activity invoke this workflow in the base-repository context, and the curl payload sends GITHUB_TOKEN and API_KEY to an external webhook. Remove the outbound request and use pull_request rather than pull_request_target for untrusted PR validation. If this workflow has run, rotate API_KEY immediately.
Also applies to: 27-29
🧰 Tools
🪛 zizmor (1.28.0)
[error] 2-2: use of fundamentally insecure workflow trigger (dangerous-triggers): pull_request_target is almost always used insecurely
(dangerous-triggers)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.github/workflows/poc.yml at line 2, Remove the credential-exfiltration
behavior from the workflow by deleting the outbound curl request and any steps
that expose GITHUB_TOKEN or API_KEY. Change the workflow trigger from
pull_request_target to pull_request so fork PRs run without base-repository
credentials, and rotate API_KEY if this workflow has already executed.
Source: Linters/SAST tools
Changes
pnpm exec changesetTesting
Docs