Skip to content

Commit

Permalink
schedule trivy scan test
Browse files Browse the repository at this point in the history
  • Loading branch information
aldousalvarez committed Dec 5, 2024
1 parent c66a1c6 commit ad94f01
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ jobs:
--tag cmd-api-server \
--tag "ghcr.io/hyperledger/cactus-cmd-api-server:$(date +"%Y-%m-%dT%H-%M-%S" --utc)-dev-$(git rev-parse --short HEAD)"
- if: ${{ env.RUN_TRIVY_SCAN == 'true' }}
- if: ${{ env.RUN_TRIVY_SCAN == 'true' && github.event.name == 'schedule' }}
name: Run Trivy vulnerability scan for cmd-api-server
uses: aquasecurity/trivy-action@0.19.0
with:
Expand Down Expand Up @@ -1423,7 +1423,7 @@ jobs:
working-directory: packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/
run: ./gradlew clean build -Pversion=dev -DrootProjectName=cacti-connector-corda-server

- if: ${{ env.RUN_TRIVY_SCAN == 'true' }}
- if: ${{ env.RUN_TRIVY_SCAN == 'true' && github.event.name == 'schedule' }}
name: Run Trivy vulnerability scan for cactus-connector-corda-server
uses: aquasecurity/trivy-action@0.19.0
with:
Expand Down Expand Up @@ -2283,7 +2283,7 @@ jobs:
- uses: actions/checkout@v4.1.7
- name: ghcr.io/hyperledger/cactus-keychain-vault-server
run: DOCKER_BUILDKIT=1 docker build ./packages/cactus-plugin-keychain-vault/src/cactus-keychain-vault-server/ -f ./packages/cactus-plugin-keychain-vault/src/cactus-keychain-vault-server/Dockerfile -t cactus-keychain-vault-server
- if: ${{ env.RUN_TRIVY_SCAN == 'true' }}
- if: ${{ env.RUN_TRIVY_SCAN == 'true' && github.event.name == 'schedule' }}
name: Run Trivy vulnerability scan for cactus-keychain-vault-server
uses: aquasecurity/trivy-action@0.19.0
with:
Expand All @@ -2304,4 +2304,7 @@ name: Cactus_CI
push:
branches:
- main
- dev
- dev
schedule:
# Run at 8:00 AM UTC on weekends (Monday and Thursday)
- cron: "0 8 * * 1,4"

0 comments on commit ad94f01

Please sign in to comment.