Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 911 Bytes

DEVELOPING.md

File metadata and controls

31 lines (21 loc) · 911 Bytes

Developing

Information to get started developing the sbom-action.

Logging

If you would like to get more extensive debug logging, it is possible to enable this as described here by setting a secret in your repository of ACTIONS_STEP_DEBUG to true.

Update dist/

Updates to dist/ and handled via a commit hook. Install the hook by running npm install.

Tests

To run tests locally, you will need a local docker instance and registry along with a few known images from the fixtures. Just run:

docker run -d -p 5000:5000 --name registry registry:2

... and a set of images built:

for distro in alpine centos debian; do
  docker build -t localhost:5000/match-coverage/$distro ./tests/fixtures/image-$distro-match-coverage
  docker push localhost:5000/match-coverage/$distro:latest
done