Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

Commit 01302b4

Browse files
authored
Merge pull request #9 from datasciencecampus/dev-trivy-incident
Disable Trivy and update CI workflow actions
2 parents 5d3390f + 9319575 commit 01302b4

File tree

2 files changed

+55
-20
lines changed

2 files changed

+55
-20
lines changed

.github/workflows/ci.yaml

Lines changed: 49 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,61 @@
1-
name: CI Security Scan
2-
permissions:
3-
contents: read
1+
name: CI
42

53
on:
64
push:
7-
branches:
8-
- main
95
pull_request:
10-
branches:
11-
- main
6+
branches: ["main"]
7+
8+
env:
9+
TERRAFORM_VERSION: "1.13.5" # terraform version
10+
11+
permissions:
12+
contents: read
1213

1314
jobs:
14-
security-scan:
15+
tf-fmt:
16+
name: Terraform fmt
1517
runs-on: ubuntu-latest
1618
steps:
17-
- name: Checkout code
18-
uses: actions/checkout@v6.0.2
19-
20-
21-
- name: Run Checkov
22-
uses: bridgecrewio/checkov-action@v12
19+
- name: Checkout repository
20+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
21+
- name: Setup Terraform
22+
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4.0.0
23+
with:
24+
terraform_version: ${{ env.TERRAFORM_VERSION }}
25+
- name: Run terraform fmt
26+
run: terraform fmt -recursive -check -diff
27+
# TEMPORARILY DISABLED DUE TO SECURITY INCIDENT
28+
# trivy:
29+
# name: trivy
30+
# runs-on: ubuntu-latest
31+
# steps:
32+
# - name: Checkout repository
33+
# uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34+
# - name: Trivy scan
35+
# uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0
36+
# with:
37+
# scan-type: fs
38+
# scan-ref: .
39+
# trivy-config: configs/trivy.yaml
40+
checkov:
41+
name: Checkov
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Checkout repository
45+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
46+
- name: Checkov scan
47+
uses: bridgecrewio/checkov-action@2fd3901c8feb52417f27f0d9800259a106c1ec1e # v12
2348
with:
2449
directory: .
2550
config_file: configs/checkov.yml
2651

27-
- name: Run Trivy on repo
28-
uses: aquasecurity/trivy-action@0.35.0
29-
with:
30-
scan-type: fs
31-
path: .
32-
trivy-config: configs/trivy.yaml
52+
tflint:
53+
name: TFLint
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Checkout repository
57+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
58+
- name: TFLint scan
59+
uses: terraform-linters/setup-tflint@b480b8fcdaa6f2c577f8e4fa799e89e756bb7c93 # v6.2.2
60+
- name: Run TFLint
61+
run: tflint --config=configs/.tflint.hcl

configs/.tflint.hcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
config {
2+
format = "default"
3+
call_module_type = "none"
4+
force = false
5+
disabled_by_default = false
6+
}

0 commit comments

Comments
 (0)