File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 - name : Update Trivy versions
2323 run : make bump-trivy
2424
25+ - name : Setup Bats and bats libs
26+ id : setup-bats
27+ uses : bats-core/bats-action@3.0.1
28+
2529 - name : Update golden files
30+ env :
31+ BATS_LIB_PATH : ${{ steps.setup-bats.outputs.lib-path }}
2632 run : make update-golden
2733
2834 - name : Create PR
Original file line number Diff line number Diff line change @@ -16,16 +16,15 @@ jobs:
1616 - uses : actions/checkout@v4
1717
1818 - name : Setup Bats and bats libs
19- uses : bats-core/bats-action@2.0.0
19+ id : setup-bats
20+ uses : bats-core/bats-action@3.0.1
2021
2122 - name : Install Trivy
2223 run : |
2324 curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v${{ env.TRIVY_VERSION }}
2425 trivy --version
2526
2627 - name : Test
27- run : bats --recursive --timing --verbose-run .
2828 env :
29- TRIVY_CACHE_DIR : .cache
30- TRIVY_DISABLE_VEX_NOTICE : true
31- TRIVY_DEBUG : true
29+ BATS_LIB_PATH : ${{ steps.setup-bats.outputs.lib-path }}
30+ run : make test
Original file line number Diff line number Diff line change 11OS := $(shell uname)
22SED = sed
3- BATS_LIB_PATH = /usr/local/lib/
3+ BATS_LIB_PATH ? = /usr/local/lib/
44
55ifeq ($(OS ) , Darwin)
66SED = gsed
7- BATS_LIB_PATH = /opt/homebrew/lib
7+ BATS_LIB_PATH ? = /opt/homebrew/lib
88endif
99
1010BATS_ENV := BATS_LIB_PATH=$(BATS_LIB_PATH ) \
You can’t perform that action at this time.
0 commit comments