Skip to content

Add parser for GitHub Actions lockfile (actions.lock) - #51

Draft
andrew wants to merge 1 commit into
mainfrom
actions-lock
Draft

Add parser for GitHub Actions lockfile (actions.lock)#51
andrew wants to merge 1 commit into
mainfrom
actions-lock

Conversation

@andrew

@andrew andrew commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Registers .github/workflows/actions.lock as a github-actions lockfile. The file is written by gh actions-lock and the schema is defined in github/actions-lockfile.

The format is pre-1.0 and marked as subject to change, so the parser is a plain yaml.Unmarshal that ignores unknown fields and doesn't gate on the version: string. That keeps older git-pkgs binaries working across schema bumps and lets us support multiple format versions later without an external dependency.

Each dependencies: entry becomes one row: Name from the owner/repo prefix of the pin key, Version from ref:, Integrity from commit: (sha1-<hex>), and Direct set for pins that appear in a workflows: list (transitive-only entries reached via uses: are indirect).

Draft until the format is announced.

Registers .github/workflows/actions.lock as a github-actions lockfile.
The format is written by gh actions-lock and defined at
github/actions-lockfile; it is pre-1.0 so the parser is deliberately
lenient (unknown fields ignored, no version gate).

Each dependencies: entry becomes one row with Name from the pin key,
Version from the ref: field, Integrity from commit:, and Direct set for
pins referenced from a workflows: list.
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