github / github/gh-actions-lock

A broken action.lock file causes it to be ignored

Open
#125 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
49
Forks
3
Avg merge
1d 20h
Merged PRs (30d)
3

Description

I was surprised dependabot was able to suddenly update my actions without workflows failing, turned out I had somehow pushed a broken action lock file:

https://github.com/jessehouwing/actions-semver-checker/blob/7de219d45de803f9febd8e3fd564cb55e0e30f5f/.github/workflows/actions.lock

I'd expect this to fail when a workflow runs, but it just runs without ANY issues.

https://github.com/jessehouwing/actions-semver-checker/actions/runs/34647263399

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the behavior with the broken .github/workflows/actions.lock file in the linked actions-semver-checker commit and review workflow run 34647263399. Trace how gh-actions-lock validates or consumes malformed lockfiles, then add coverage for this case. Done means a broken lockfile is detected and the workflow fails instead of silently ignoring it.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, go
Domain
ci-cd, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.