Skip to content

Commit

Permalink
Untar directly from /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 committed Jan 11, 2024
1 parent dc7ede0 commit 3a352b5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/actions/scan-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ runs:
run: |
docker pull $DATABASE_REF
docker save -o /tmp/clair/ $DATABASE_REF
mv /tmp/clair/matcher.db.tar.gz .clair/
tar -xvf .clair/matcher.db.tar.gz -C .clair/
rm -rf .clair/matcher.db.tar.gz
tar -xvf /tmp/clair/matcher.db.tar.gz -C .clair/
rm -rf .clair/matcher.db.tar.gz /tmp/clair/
- name: Scan image
uses: quay/clair-action@main
Expand Down

0 comments on commit 3a352b5

Please sign in to comment.