Skip to content

Commit

Permalink
disable trivy in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Dec 13, 2024
1 parent 8023dfe commit c3542da
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
SKIP=1
fi
echo "SKIP=$SKIP" >> "$GITHUB_ENV"
- name: Trivy Dockerfile misconfiguration check
if: env.SKIP == '0'
run: ./bin/trivy-misconfig-dockerfile.bash "software/${{ matrix.package }}/Dockerfile"
# - name: Trivy Dockerfile misconfiguration check
# if: env.SKIP == '0'
# run: ./bin/trivy-misconfig-dockerfile.bash "software/${{ matrix.package }}/Dockerfile"
- name: run hadolint
if: env.SKIP == '0'
run: ./bin/hadolint.bash "software/${{ matrix.package }}/Dockerfile"
Expand Down Expand Up @@ -87,19 +87,19 @@ jobs:
set -euxo pipefail
docker builder prune --all --force
df -h
- name: run trivy
if: env.SKIP == '0'
run: |
set -euxo pipefail
export reports_dir=$(mktemp -d)
echo "reports_dir=$reports_dir" >> "$GITHUB_ENV"
./bin/trivy-image-scan.bash "$img:$tag"
- name: upload trivy report
if: env.SKIP == '0' && !cancelled()
uses: actions/upload-artifact@v4
with:
name: 'trivy-reports-${{ matrix.package }}'
path: '${{ env.reports_dir }}/'
# - name: run trivy
# if: env.SKIP == '0'
# run: |
# set -euxo pipefail
# export reports_dir=$(mktemp -d)
# echo "reports_dir=$reports_dir" >> "$GITHUB_ENV"
# ./bin/trivy-image-scan.bash "$img:$tag"
# - name: upload trivy report
# if: env.SKIP == '0' && !cancelled()
# uses: actions/upload-artifact@v4
# with:
# name: 'trivy-reports-${{ matrix.package }}'
# path: '${{ env.reports_dir }}/'
- name: push image
if: env.SKIP == '0' && github.ref == 'refs/heads/main'
run: |
Expand Down

0 comments on commit c3542da

Please sign in to comment.