diff --git a/.actrc b/.actrc index 1b3fd12..f35f3c4 100644 --- a/.actrc +++ b/.actrc @@ -1,3 +1,4 @@ # .actrc --container-architecture=linux/arm64 -P ubuntu-latest=catthehacker/ubuntu:act-latest +-e event.json \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 361dff0..7a461d0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -110,12 +110,12 @@ jobs: severity: "HIGH,CRITICAL" env: # dbs are downloaded async in trivy-cache.yml - TRIVY_SKIP_DB_UPDATE: true + TRIVY_SKIP_DB_UPDATE: ${{ !env.ACT }} TRIVY_SKIP_JAVA_DB_UPDATE: true terraform: uses: ./.github/workflows/terraform.yml - if: github.event.pull_request.user.login != 'dependabot[bot]' + if: ${{ !github.event.act && github.event.pull_request.user.login != 'dependabot[bot]' }} with: branch: ${{ github.ref }} tf_work_subdir: permanent diff --git a/event.json b/event.json new file mode 100644 index 0000000..153f50b --- /dev/null +++ b/event.json @@ -0,0 +1 @@ +act: true \ No newline at end of file