Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

imposter-action-test

Test fixture for StepSecurity's Action-Uses-Imposter-Commit detection and the per-action@sha false-positive review verdict.

This repo is deliberately structured so that one of its commits is unreachable from any branch. Do not "fix" the dangling commit or delete the v1 tag — that is the whole point of the fixture.

Layout

Ref Reachable from a branch? Expected detection
main tip / tag v1.0.0 yes (main) not flagged — negative control
tag v1 no — commit sits on top of main but was never pushed to a branch flagged as imposter commit

Why the v1 commit is flagged

refContains compares refs/heads/<branch>...<sha> for the default branch and then every other branch, and treats the SHA as legitimate only when the compare status is behind or identical — i.e. the commit is already an ancestor of that branch. The v1 commit is a child of the main tip, so every comparison returns ahead, no branch contains it, and the analysis marks it as an imposter commit.

This is the same shape as a real supply-chain attack: push a commit that is on no branch, then repoint a tag at it.

Usage

See .github/workflows/consume-action.yml for a sample consuming workflow. Pin the SHA you want to exercise; the consuming repo must have an active StepSecurity subscription and run harden-runner for the run to be correlated.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors