Title: permission_check fails on fork PRs before it checks anything (checkout v7 refuses the head ref) · Issue #72 · linuxserver/github-workflows · GitHub
Open Graph Title: permission_check fails on fork PRs before it checks anything (checkout v7 refuses the head ref) · Issue #72 · linuxserver/github-workflows
X Title: permission_check fails on fork PRs before it checks anything (checkout v7 refuses the head ref) · Issue #72 · linuxserver/github-workflows
Description: init-svc-executable-permissions.yml fails on a fork pull request that touches run, finish, check or root/migrations/*. The job stops before any file is read, because actions/checkout@v7.0.1 refuses pull_request.head.sha in a pull_request...
Open Graph Description: init-svc-executable-permissions.yml fails on a fork pull request that touches run, finish, check or root/migrations/*. The job stops before any file is read, because actions/checkout@v7.0.1 refuses...
X Description: init-svc-executable-permissions.yml fails on a fork pull request that touches run, finish, check or root/migrations/*. The job stops before any file is read, because actions/checkout@v7.0.1 refuses...
Opengraph URL: https://github.com/linuxserver/github-workflows/issues/72
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"permission_check fails on fork PRs before it checks anything (checkout v7 refuses the head ref)","articleBody":"`init-svc-executable-permissions.yml` fails on a fork pull request that touches `run`, `finish`, `check` or `root/migrations/*`. The job stops before any file is read, because `actions/checkout@v7.0.1` refuses `pull_request.head.sha` in a `pull_request_target` workflow.\n\nPR #190 shows it: https://github.com/linuxserver/docker-baseimage-selkies/actions/runs/33459741080/job/99707212121\nThe checkout step ends with:\n\n```\n##[error]Refusing to check out fork pull request code from a 'pull_request_target' workflow. This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch cache scope, and runner access. Fetching and executing a fork's code in that trusted context commonly leads to \"pwn request\" vulnerabilities. To opt in, review the risks at https://gh.io/securely-using-pull_request_target and set 'allow-unsafe-pr-checkout: true' on the actions/checkout step.\n```\n\n\"Check Permissions\" is then skipped and the job fails. On that head SHA (a5272e08) all 13 `run`/`finish` files are 100755, so the check would have passed.\n\nThe switch to checkout 7 reached v1 with 6c9815b8 on 2026-07-03; the first fork run after that is from 2026-07-06. Since then 45 fork-head runs across linuxserver have failed and 7 internal-head runs have passed. After the switch and before that first fork run, docker-sabnzbd run 28709064096 (2026-07-04) passed: `**** All perms look good ****`. Twelve open fork pull requests carry a red permission_check; three more are green from before the switch.\n\nf3577570 pinned the step to the head SHA because the check needs the PR's own files. The file modes can be read without a checkout: the git trees API on the base repository reaches the fork head through `refs/pull/N/head`, so the job can flag any matching blob that is not `100755` without fetching fork code. At a5272e08 it returns `truncated: false`, 151 entries, 13 of them `run`/`finish` blobs, all `100755`. That leaves `pull_request_target` and the pinned ref untouched, with no `allow-unsafe-pr-checkout`. The same checkout step sits in `docker-mod-builder.yml`, which handles CR_PAT and DOCKERPASS.","author":{"url":"https://github.com/junkerderprovinz","@type":"Person","name":"junkerderprovinz"},"datePublished":"2026-09-06T01:37:33Z","url":"https://github.com/linuxserver/github-workflows/issues/72"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:54dc79e6-b275-64f9-3dc7-f951f64cfaee |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 960C:323204:18A011D:2074BC6:6B020F4F |
| html-safe-nonce | 954bd00066855e7f047da6808f0730cf4e094774e074a328570a8d31289ce454 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjBDOjMyMzIwNDoxOEEwMTFEOjIwNzRCQzY6NkIwMjBGNEYiLCJ2aXNpdG9yX2lkIjoiNzUyMTM3OTA1MDE3OTM5OTUwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d792a44327ec95cef6db7a2d480e742f05503ea7346487aca703ff5948322b0c |
| hovercard-subject-tag | issue:5362149980 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/linuxserver/github-workflows/72/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7cb6d3a2e9e6f8949cf51b64490aa926e83e1d8459341e71ad46e7d23afbcd48/linuxserver/github-workflows/issues/72 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7cb6d3a2e9e6f8949cf51b64490aa926e83e1d8459341e71ad46e7d23afbcd48/linuxserver/github-workflows/issues/72 |
| og:image:alt | init-svc-executable-permissions.yml fails on a fork pull request that touches run, finish, check or root/migrations/*. The job stops before any file is read, because actions/checkout@v7.0.1 refuses... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | junkerderprovinz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/linuxserver/github-workflows git https://github.com/linuxserver/github-workflows.git |
| octolytics-dimension-user_id | 12324908 |
| octolytics-dimension-user_login | linuxserver |
| octolytics-dimension-repository_id | 544785668 |
| octolytics-dimension-repository_nwo | linuxserver/github-workflows |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 544785668 |
| octolytics-dimension-repository_network_root_nwo | linuxserver/github-workflows |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width