René's URL Explorer Experiment


Title: Commit-pinned actions can be reported as unresolved even when action.yml exists · Issue #593 · github/vscode-github-actions · GitHub

Open Graph Title: Commit-pinned actions can be reported as unresolved even when action.yml exists · Issue #593 · github/vscode-github-actions

X Title: Commit-pinned actions can be reported as unresolved even when action.yml exists · Issue #593 · github/vscode-github-actions

Description: Summary The GitHub Actions extension can report commit-pinned actions as unresolved even when the action repository, ref, and action.yml are valid and publicly reachable. This affects workflows that pin actions by full commit SHA for sup...

Open Graph Description: Summary The GitHub Actions extension can report commit-pinned actions as unresolved even when the action repository, ref, and action.yml are valid and publicly reachable. This affects workflows tha...

X Description: Summary The GitHub Actions extension can report commit-pinned actions as unresolved even when the action repository, ref, and action.yml are valid and publicly reachable. This affects workflows tha...

Opengraph URL: https://github.com/github/vscode-github-actions/issues/593

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Commit-pinned actions can be reported as unresolved even when action.yml exists","articleBody":"## Summary\n\nThe GitHub Actions extension can report commit-pinned actions as unresolved even when the action repository, ref, and `action.yml` are valid and publicly reachable.\n\nThis affects workflows that pin actions by full commit SHA for supply-chain hardening. The workflow is valid and GitHub Actions can run it, but the VS Code Problems panel reports:\n\n```text\nUnable to resolve action `actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd`, repository or version not found\nUnable to resolve action `step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5`, repository or version not found\n```\n\nThis is related in symptom to #143, but the failure mode is different: this is not a network timeout and not a missing tag. These are full commit SHA refs whose `action.yml` resolves successfully via GitHub.\n\n## Environment\n\n- Extension: `github.vscode-github-actions` `0.31.5`\n- VS Code: `1.120.0`, Windows x64\n- Also reproduced in Google Antigravity `1.107.0`, which uses the same extension version (`github.vscode-github-actions@0.31.5`)\n- OS: Windows\n\n## Reproduction\n\nCreate or open a workflow containing commit-pinned actions, for example:\n\n```yaml\nsteps:\n  - name: Harden the runner\n    uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3\n\n  - name: Checkout\n    uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2\n```\n\nOpen the workflow in VS Code with the GitHub Actions extension enabled.\n\n## Actual behavior\n\nThe Problems panel shows errors like:\n\n```text\nUnable to resolve action `step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5`, repository or version not found\nUnable to resolve action `actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd`, repository or version not found\n```\n\n## Expected behavior\n\nThe extension should resolve action metadata for full SHA refs the same way it does for tags/branches, as long as `action.yml` or `action.yaml` exists at that ref.\n\nAt minimum, it should not emit `repository or version not found` when the repo/ref/action metadata file can be fetched successfully.\n\n## Evidence that the refs are valid\n\nThe tags resolve to the same commits:\n\n```console\n$ git ls-remote --tags https://github.com/actions/checkout.git refs/tags/v6.0.2\n de0fac2e4500dabe0009e67214ff5f5447ce83dd  refs/tags/v6.0.2\n\n$ git ls-remote --tags https://github.com/step-security/harden-runner.git refs/tags/v2.19.3\n ab7a9404c0f3da075243ca237b5fac12c98deaa5  refs/tags/v2.19.3\n```\n\nThe GitHub Contents API also resolves `action.yml` at both refs:\n\n```text\nGET /repos/actions/checkout/contents/action.yml?ref=de0fac2e4500dabe0009e67214ff5f5447ce83dd -> 200\nGET /repos/step-security/harden-runner/contents/action.yml?ref=ab7a9404c0f3da075243ca237b5fac12c98deaa5 -> 200\n```\n\nThese workflows also run successfully in GitHub Actions, so this appears isolated to the extension/language-server validation path.\n\n## Why this matters\n\nSecurity tooling such as OpenSSF Scorecard rewards pinning GitHub Actions by immutable SHA. Replacing SHAs with tags quiets the editor diagnostic but weakens supply-chain hardening and can reintroduce `PinnedDependencies` findings.\n\nSo the practical workaround is either to ignore Problems panel noise or to weaken action pinning. Neither is ideal.\n\n## Suspected cause\n\nIn the built extension bundle, the language server fetch path appears to call GitHub's Contents API for action metadata and returns `undefined` on failure:\n\n```js\nrepos.getContent({ owner, repo, ref, path: \"action.yml\" })\n// fallback to action.yaml on 404\n```\n\nThen validation emits:\n\n```text\nUnable to resolve action `\u003cuses>`, repository or version not found\n```\n\nFor full SHA refs, the action metadata is available, but the extension still reaches the unresolved path in some installations. I could not reproduce a failure with direct API calls using the same refs, which suggests the language server may be mishandling the ref, cache key, auth/API state, or a transient API error and collapsing it into a permanent `repository or version not found` diagnostic.\n\n## Suggested fix\n\nA robust fix would be:\n\n1. Keep the existing Contents API lookup for `action.yml` and `action.yaml`.\n2. When the ref looks like a full commit SHA (`/^[0-9a-f]{40}$/i`) and the Contents API path fails or returns no metadata, retry against the raw content URL before reporting a diagnostic:\n\n```ts\nasync function fetchRawActionMetadata(action: ActionRef): Promise\u003cstring | undefined> {\n  for (const filename of [\"action.yml\", \"action.yaml\"]) {\n    const path = action.path ? `${action.path}/${filename}` : filename;\n    const url = `https://raw.githubusercontent.com/${action.owner}/${action.name}/${action.ref}/${path}`;\n    const response = await fetch(url);\n    if (response.ok) return await response.text();\n  }\n  return undefined;\n}\n```\n\n3. Only emit `repository or version not found` if both the Contents API and the raw fallback fail.\n4. Ideally, distinguish network/auth/API errors from real repo/ref-not-found errors in the diagnostic message.\n\nI tested this fallback locally by patching the bundled language-server files (`dist/server-node.js` and `dist/server-web.js`) to try `raw.githubusercontent.com/.../action.yml` and `action.yaml` before returning unresolved metadata. After reloading the editor, the SHA-pinned actions can be resolved without replacing SHAs with mutable tags.\n\n## Additional notes\n\nThe extension should continue to validate inputs after metadata is fetched. The proposed fallback only changes the metadata retrieval path for valid immutable refs; it does not suppress validation generally.\r\n","author":{"url":"https://github.com/lcv-leo","@type":"Person","name":"lcv-leo"},"datePublished":"2026-05-19T00:12:51Z","url":"https://github.com/github/vscode-github-actions/issues/593"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1e378d5f-4a0a-5fb5-865e-cf1acb8cc6e8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8C3A:3DBB2A:E0C92:1384B4:6AFD7C50
html-safe-nonce6284dd3822eb6f72bfac89c691aa07af80fce311fd6e6cc191b59daed0e342b4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzNBOjNEQkIyQTpFMEM5MjoxMzg0QjQ6NkFGRDdDNTAiLCJ2aXNpdG9yX2lkIjoiMTg1MjQ4ODAxMjk1NzMxODIyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac49bbcbda0e208d142f33015b3781479f2f8ac5e40af705cf3d7ed2dd109ed290
hovercard-subject-tagissue:4473443762
github-keyboard-shortcutsrepository,issues,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/vscode-github-actions/593/issue_layout
twitter:imagehttps://opengraph.githubassets.com/91162e4f9b0ceb156211fd76f0a3b09ff267e224b36d0002e9ca7db24b81da8a/github/vscode-github-actions/issues/593
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/91162e4f9b0ceb156211fd76f0a3b09ff267e224b36d0002e9ca7db24b81da8a/github/vscode-github-actions/issues/593
og:image:altSummary The GitHub Actions extension can report commit-pinned actions as unresolved even when the action repository, ref, and action.yml are valid and publicly reachable. This affects workflows tha...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelcv-leo
hostnamegithub.com
expected-hostnamegithub.com
None544ff6b59bd215c4609120f6e334dbd0b00d34fb6f8bc03a476f72256998887e
turbo-cache-controlno-preview
go-importgithub.com/github/vscode-github-actions git https://github.com/github/vscode-github-actions.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id616663763
octolytics-dimension-repository_nwogithub/vscode-github-actions
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id616663763
octolytics-dimension-repository_network_root_nwogithub/vscode-github-actions
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release71c92f8b27ec5e9aa6f6477b4e067a4727fc9edb
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/vscode-github-actions/issues/593#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fvscode-github-actions%2Fissues%2F593
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fvscode-github-actions%2Fissues%2F593
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fvscode-github-actions
Reloadhttps://github.com/github/vscode-github-actions/issues/593
Reloadhttps://github.com/github/vscode-github-actions/issues/593
Reloadhttps://github.com/github/vscode-github-actions/issues/593
githubhttps://github.com/github
vscode-github-actionshttps://github.com/github/vscode-github-actions
Codehttps://github.com/github/vscode-github-actions
Issues190 (190)https://github.com/github/vscode-github-actions/issues
Pull requests49 (49)https://github.com/github/vscode-github-actions/pulls
Discussionshttps://github.com/github/vscode-github-actions/discussions
Actionshttps://github.com/github/vscode-github-actions/actions
Projectshttps://github.com/github/vscode-github-actions/projects
Security and qualityhttps://github.com/github/vscode-github-actions/security
Insightshttps://github.com/github/vscode-github-actions/insights
https://github.com/github/vscode-github-actions
New issuehttps://github.com/login?return_to=https://github.com/github/vscode-github-actions/issues/593
New issuehttps://github.com/login?return_to=https://github.com/github/vscode-github-actions/issues/593
#637https://github.com/github/vscode-github-actions/pull/637
Commit-pinned actions can be reported as unresolved even when action.yml existshttps://github.com/github/vscode-github-actions/issues/593#top
#637https://github.com/github/vscode-github-actions/pull/637
https://github.com/lcv-leo
lcv-leohttps://github.com/lcv-leo
on May 19, 2026https://github.com/github/vscode-github-actions/issues/593#issue-4473443762
#143https://github.com/github/vscode-github-actions/issues/143
github-project-automationhttps://github.com/apps/github-project-automation
GitHub Actions VS Code Extensionhttps://github.com/orgs/github/projects/9557
on May 19, 2026https://github.com/github/vscode-github-actions/issues/593#event-25682722982
github-project-automationhttps://github.com/apps/github-project-automation
GitHub Actions VS Code Extensionhttps://github.com/orgs/github/projects/9557
on May 19, 2026https://github.com/github/vscode-github-actions/issues/593
https://github.com/lcv-leo
lcv-leohttps://github.com/lcv-leo
on May 22, 2026https://github.com/github/vscode-github-actions/issues/593#issuecomment-4520603054
https://github.com/Neurone
Neuronehttps://github.com/Neurone
on Sep 4, 2026https://github.com/github/vscode-github-actions/issues/593#issuecomment-5546420202
0x5t4l1nhttps://github.com/0x5t4l1n
on Oct 11, 2026https://github.com/github/vscode-github-actions/issues/593#event-32975637407
fix: fall back to raw.githubusercontent.com for SHA-pinned action res…https://github.com/0x5t4l1n/vscode-github-actions/commit/eb60cee5f102d21f86ded489f9ce3c476ac0209a
https://docs.github.com/articles/closing-issues-via-commit-messages
eb60ceehttps://github.com/0x5t4l1n/vscode-github-actions/commit/eb60cee5f102d21f86ded489f9ce3c476ac0209a
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/vscode-github-actions/issues/593
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/vscode-github-actions/issues/593
GitHub Actions VS Code Extensionhttps://github.com/orgs/github/projects/9557
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.