{"paid":false,"kind":"synthetic_sample","ruleset":"workflow-risk-check-v1.2.0","input":{"filename":"pr-check.yml","bytes":256,"source":"https://github.com/livastic-vm2-primary-20260911/workflow-risk-check/blob/main/examples/synthetic-paid-preflight-sample.md"},"report":{"file":"pr-check.yml","events":["pull_request_target"],"findings":[{"severity":"high","id":"TARGET_UNTRUSTED_CODE","title":"PR head checkout followed by script execution under pull_request_target","where":"jobs.test.steps","description":"A checkout of an external PR head precedes later run: steps in an event that can have privileged repository context.","recommendation":"Use pull_request for untrusted build/test code and an isolated trusted workflow for any privileged action.","source":"https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/","line":8},{"severity":"medium","id":"ACTION_UNPINNED","title":"Third-party action uses a mutable ref","where":"jobs.test.steps[1].uses","description":"actions/checkout@v4 is not pinned to a 40-character immutable commit SHA.","recommendation":"Pin this action to a reviewed full commit SHA; keep a version comment for Dependabot/Renovate.","source":"https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions","line":8},{"severity":"medium","id":"WORKFLOW_WRITE","title":"Workflow-level token has write permissions with externally triggered events","where":"workflow / permissions","description":"Write-capable scopes: contents. Exposure depends on the trigger and job trust boundaries.","recommendation":"Move necessary writes to trusted jobs with tight conditions and use the smallest scopes possible.","source":"https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token","line":3},{"severity":"note","id":"TARGET_CONTEXT","title":"pull_request_target requires a trusted-code boundary","where":"workflow / on","description":"The event may run in the base repository's privileged context. Merely enabling it is not necessarily vulnerable.","recommendation":"Avoid running untrusted PR changes or content in this event; check out only trusted base code.","source":"https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/","line":2}],"counts":{"high":1,"medium":2,"note":1}},"disclaimer":"Static heuristic example only; not a real customer security finding or a paid engagement."}