Skip to content

Commit

Permalink
ci: enable the checkov linter (#630)
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio André <[email protected]>
  • Loading branch information
claudioandre-br committed Nov 19, 2024
1 parent f4f559c commit df9b83a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ buildsystem
CCO
CFLAGS
cflite
CHECKOV
checkov
cidr
circleci
cirruslabs
CKV
claudio
claudioandre
clinfo
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/approve-it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ name: Approve it

"on":
workflow_dispatch:
#checkov:skip=CKV_GHA_7:This is automation, not a real build
inputs:
pullRequestNumber:
description: Pull request number
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ jobs:
ENABLE_COMMITLINT_STRICT_MODE: true
ENFORCE_COMMITLINT_CONFIGURATION_CHECK: true
VALIDATE_ALL_CODEBASE: false
VALIDATE_CHECKOV: false
VALIDATE_GIT_COMMITLINT: true
DEFAULT_BRANCH: "main"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/merge-it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ name: Merge it

"on":
workflow_dispatch:
#checkov:skip=CKV_GHA_7:This is automation, not a real build
inputs:
pullRequestNumber:
description: Pull request number
Expand Down
2 changes: 2 additions & 0 deletions cloud-tool/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ data "aws_ami" "ubuntu" {
}

resource "aws_instance" "worker" {
#checkov:skip=CKV2_AWS_41:IAM role is NOT attached to EC2 instance. Keep simple
#checkov:skip=CKV_AWS_135:EC2 EBS is NOT optimized. Keep simple and CHEAP
ami = data.aws_ami.ubuntu.id
vpc_security_group_ids = [aws_security_group.jtrcrackers-sg.id]
key_name = aws_key_pair.deployer.key_name
Expand Down

0 comments on commit df9b83a

Please sign in to comment.