Skip to content

Add GitHub Actions registry support and fix JSR versions parsing#4

Merged
christian-andersson merged 3 commits intomainfrom
feature/github-actions-registry-and-jsr-fix
Apr 7, 2026
Merged

Add GitHub Actions registry support and fix JSR versions parsing#4
christian-andersson merged 3 commits intomainfrom
feature/github-actions-registry-and-jsr-fix

Conversation

@christian-andersson
Copy link
Copy Markdown
Member

Summary

  • Add github-actions as a new registry type for looking up GitHub Action versions via the GitHub API (tags + releases), with commit SHA-pinned secure references for supply chain security
  • Add workflow YAML parser that extracts uses: directives, handling subpath actions, deduplication, and skipping local/Docker/SHA-pinned references
  • Fix JSR listVersions/lookupVersion runtime crash caused by the versions API returning { items: [...] } instead of a plain array

Test plan

  • All 91 parser tests pass (deno test src/parsers/parsers.test.ts) — includes 11 new GitHub Actions parser tests
  • deno check passes with no type errors
  • Verified JSR client fix against live API (@std/path, @oak/oak)
  • Verify GitHub Actions lookups work against live API (e.g. actions/checkout, github/codeql-action)

🤖 Generated with Claude Code

The JSR API returns { items: [...], total: N } for the versions
endpoint, not a plain array. This caused lookupVersion and listVersions
to fail with "filter/map is not a function" at runtime.

AI-Assisted
Add "github-actions" as a new registry type for looking up action
versions via the GitHub API. Includes commit SHA-pinned secure
references for supply chain security, a workflow YAML parser that
extracts uses: directives, and 11 parser tests.

AI-Assisted
@christian-andersson christian-andersson merged commit 805a253 into main Apr 7, 2026
1 check passed
@christian-andersson christian-andersson deleted the feature/github-actions-registry-and-jsr-fix branch April 7, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant