Skip to content

Commit 7004369

Browse files
authored
fix(sec): remove compromised Trivy actions (apache#38780)
Signed-off-by: hainenber <dotronghai96@gmail.com>
1 parent f5d7ce0 commit 7004369

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

.github/workflows/docker.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -101,23 +101,6 @@ jobs:
101101
docker images $IMAGE_TAG
102102
docker history $IMAGE_TAG
103103
104-
# Scan for vulnerabilities in built container image after pushes to mainline branch.
105-
- name: Run Trivy container image vulnerabity scan
106-
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && (steps.check.outputs.python || steps.check.outputs.frontend || steps.check.outputs.docker) && matrix.build_preset == 'lean'
107-
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
108-
with:
109-
image-ref: ${{ env.IMAGE_TAG }}
110-
format: 'sarif'
111-
output: 'trivy-results.sarif'
112-
vuln-type: 'os'
113-
severity: 'CRITICAL,HIGH'
114-
ignore-unfixed: true
115-
- name: Upload Trivy scan results to GitHub Security tab
116-
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && (steps.check.outputs.python || steps.check.outputs.frontend || steps.check.outputs.docker) && matrix.build_preset == 'lean'
117-
uses: github/codeql-action/upload-sarif@1b168cd39490f61582a9beae412bb7057a6b2c4e # v4.31.8
118-
with:
119-
sarif_file: 'trivy-results.sarif'
120-
121104
- name: docker-compose sanity check
122105
if: (steps.check.outputs.python || steps.check.outputs.frontend || steps.check.outputs.docker) && matrix.build_preset == 'dev'
123106
shell: bash

0 commit comments

Comments
 (0)