Skip to content

Commit

Permalink
Update Trivy GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
thegridman committed Oct 25, 2024
1 parent e6a6e9f commit d6e6fd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ jobs:
shell: bash
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
export TRIVY_CACHE=$GITHUB_WORKSPACE/.cache
export TRIVY_CACHE=$GITHUB_WORKSPACE/.cache/trivy
make trivy-scan
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1981,7 +1981,7 @@ TRIVY_CACHE ?=
trivy-scan: build-operator-images $(TOOLS_BIN)/trivy ## Scan the Operator image using Trivy

ifeq (Darwin, $(UNAME_S))
$(TOOLS_BIN)/trivy --cache-dir OME/Library/Caches/trivy image $(OPERATOR_IMAGE)
$(TOOLS_BIN)/trivy --cache-dir $(HOME)/Library/Caches/trivy image $(OPERATOR_IMAGE)
else
ifdef TRIVY_CACHE
$(TOOLS_BIN)/trivy --cache-dir $(TRIVY_CACHE) image $(OPERATOR_IMAGE)
Expand Down

0 comments on commit d6e6fd5

Please sign in to comment.