Skip to content

Commit

Permalink
Merge pull request #17 from entur/CLOUD-1496
Browse files Browse the repository at this point in the history
fix: Cloud 1496 - checkov
  • Loading branch information
Glenn-Terjesen committed Oct 3, 2023
2 parents 812eb07 + adeb3bc commit 9992563
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .checkov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
skip-check:
- CKV_TF_1 # We tag semantic versions, not commits

17 changes: 10 additions & 7 deletions .github/workflows/pr-tests-terraform.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: Call Terraform Tests, Docs & Compliance

on:
# Triggers the workflow on push or pull request events but only for the "main" branch
# This will run the tests twice, one in the PR and one when Commiting to master.
# -> making sure the results appear in the "Security/Code Scan" tab in github.
push:
branches: [ "main", "master" ]
pull_request:
branches:
- master
types:
- opened
- synchronize
- ready_for_review
branches: [ "main", "master" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
tf-tests:
uses: entur/gh-workflows/.github/workflows/pr-tests-terraform.yml@main
with:
module_dirs: '["./modules/bigquery-sink"]'
module_dirs: '["./modules/bigquery-sink", "./examples/minimal", "./examples/minimal_test"]'
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ override.tf.json
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*
/.idea/
results.sarif
.external_modules
30 changes: 30 additions & 0 deletions examples/minimal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!-- BEGIN_TF_DOCS -->
## Requirements

No requirements.

## Providers

No providers.

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_bigquery-sink"></a> [bigquery-sink](#module\_bigquery-sink) | github.com/entur/terraform-aiven-kafka-connect-bigquery-sink//modules/bigquery-sink | v0.2.1 |
| <a name="module_init"></a> [init](#module\_init) | github.com/entur/terraform-aiven-kafka-connect-init//modules/init | v1.1.4 |

## Resources

No resources.

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_my_aiven_access_token"></a> [my\_aiven\_access\_token](#input\_my\_aiven\_access\_token) | n/a | `any` | n/a | yes |

## Outputs

No outputs.
<!-- END_TF_DOCS -->

0 comments on commit 9992563

Please sign in to comment.