Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Cloud 1496 - checkov #17

Merged
merged 3 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 -->