mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
fix(ci): keep trivy cache out of docker image
This commit is contained in:
@@ -43,6 +43,7 @@ venv.bak/
|
|||||||
.agent-work/
|
.agent-work/
|
||||||
.runtime/
|
.runtime/
|
||||||
.tmp/
|
.tmp/
|
||||||
|
.cache/
|
||||||
node_modules/
|
node_modules/
|
||||||
public/
|
public/
|
||||||
.moviepilot.env
|
.moviepilot.env
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
image-ref: moviepilot-v3-candidate:linux-amd64
|
image-ref: moviepilot-v3-candidate:linux-amd64
|
||||||
version: v0.70.0
|
version: v0.70.0
|
||||||
|
cache-dir: ${{ runner.temp }}/trivy
|
||||||
scanners: vuln
|
scanners: vuln
|
||||||
vuln-type: os,library
|
vuln-type: os,library
|
||||||
severity: HIGH,CRITICAL
|
severity: HIGH,CRITICAL
|
||||||
@@ -191,6 +192,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
image-ref: moviepilot-v3-candidate:linux-arm64
|
image-ref: moviepilot-v3-candidate:linux-arm64
|
||||||
version: v0.70.0
|
version: v0.70.0
|
||||||
|
cache-dir: ${{ runner.temp }}/trivy
|
||||||
scanners: vuln
|
scanners: vuln
|
||||||
vuln-type: os,library
|
vuln-type: os,library
|
||||||
severity: HIGH,CRITICAL
|
severity: HIGH,CRITICAL
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ def test_build_context_excludes_runtime_state_and_keeps_release_inputs() -> None
|
|||||||
".agent-work/",
|
".agent-work/",
|
||||||
".runtime/",
|
".runtime/",
|
||||||
".tmp/",
|
".tmp/",
|
||||||
|
".cache/",
|
||||||
"node_modules/",
|
"node_modules/",
|
||||||
"public/",
|
"public/",
|
||||||
".moviepilot.env",
|
".moviepilot.env",
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ def test_release_scans_both_architectures_before_registry_login_and_publish() ->
|
|||||||
"Scan arm64 candidate vulnerabilities",
|
"Scan arm64 candidate vulnerabilities",
|
||||||
):
|
):
|
||||||
scan = indexed[name]
|
scan = indexed[name]
|
||||||
|
assert scan["with"]["cache-dir"] == "${{ runner.temp }}/trivy"
|
||||||
assert scan["uses"] == (
|
assert scan["uses"] == (
|
||||||
"aquasecurity/trivy-action@"
|
"aquasecurity/trivy-action@"
|
||||||
"a9c7b0f06e461e9d4b4d1711f154ee024b8d7ab8"
|
"a9c7b0f06e461e9d4b4d1711f154ee024b8d7ab8"
|
||||||
|
|||||||
Reference in New Issue
Block a user