Skip to content

Commit

Permalink
chore: Skips steps when running ci locally via act
Browse files Browse the repository at this point in the history
  • Loading branch information
mailo-nr committed Jan 30, 2025
1 parent a769ea9 commit 83b61aa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .actrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# .actrc
--container-architecture=linux/arm64
-P ubuntu-latest=catthehacker/ubuntu:act-latest
-e event.json
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions event.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
act: true

0 comments on commit 83b61aa

Please sign in to comment.