Skip to content

Commit

Permalink
chore: allow errors in tfsec job
Browse files Browse the repository at this point in the history
  • Loading branch information
le0m committed Aug 7, 2024
1 parent 3a454ba commit b506962
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
tfsec:
name: Run tfsec
runs-on: ubuntu-latest
continue-on-error: true

steps:
- name: Checkout
Expand Down
12 changes: 4 additions & 8 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ data "aws_partition" "current" {}
###
# Bucket
###
#tfsec:ignore:enable-bucket-encryption
#tfsec:ignore:encryption-customer-key
#tfsec:ignore:enable-bucket-logging
resource "aws_s3_bucket" "default" {
bucket_prefix = "${var.name}-"
}
Expand Down Expand Up @@ -47,10 +44,10 @@ resource "aws_s3_bucket_lifecycle_configuration" "default" {
resource "aws_s3_bucket_public_access_block" "default" {
bucket = aws_s3_bucket.default.bucket

block_public_acls = false #tfsec:ignore:block-public-acls
ignore_public_acls = false #tfsec:ignore:ignore-public-acls
block_public_policy = false #tfsec:ignore:block-public-policy
restrict_public_buckets = false #tfsec:ignore:no-public-buckets
block_public_acls = false
ignore_public_acls = false
block_public_policy = false
restrict_public_buckets = false
}

resource "aws_s3_bucket_cors_configuration" "default" {
Expand Down Expand Up @@ -204,7 +201,6 @@ resource "aws_api_gateway_deployment" "default" {
}
}

#tfsec:ignore:enable-access-logging
resource "aws_api_gateway_stage" "default" {
deployment_id = aws_api_gateway_deployment.default.id
rest_api_id = aws_api_gateway_rest_api.default.id
Expand Down

0 comments on commit b506962

Please sign in to comment.