No snap error while trying to initiate scan-action
- Dominant language
- JavaScript
- Stars
- 287
- Forks
- 95
- Avg merge
- 13h 23m
- Merged PRs (30d)
- 13
Description
I have my image built with the github-action docker/build-push-action@v3 and it is available on my github runner.
Post this step if I execute the below step
` - name: Grype scan image
uses: anchore/scan-action@v6
id: grype-scan
with:
image: ${{ env.IMAGE_BUILD_TAG }}
fail-build: false
severity-cutoff: high
only-fixed: true
output-format: sarif`
I am receiving the error
`ERROR failed to catalog: errors occurred attempting to resolve
snap: snap file "" does not exist
`
can someone help me with this.
Contributor guide
Research direction
Reproduce the workflow using docker/build-push-action@v3 followed by anchore/scan-action@v6, with the image referenced by IMAGE_BUILD_TAG. Start by checking how that image reference is passed to the scan action and compare it with the reported cataloging and snap errors; done means the cause is documented and the scan step handles the locally available image correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, github-actions
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100