-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
47 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
name: 'Terraform' | ||
# name: 'Terraform' | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- '**/**/**/terraform.tf' | ||
pull_request: | ||
paths: | ||
- '**/**/**/terraform.tf' | ||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
# paths: | ||
# - '**/**/**/terraform.tf' | ||
# pull_request: | ||
# paths: | ||
# - '**/**/**/terraform.tf' | ||
|
||
jobs: | ||
terraform: | ||
name: 'Terraform' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
# jobs: | ||
# terraform: | ||
# name: 'Terraform' | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v2 | ||
|
||
- name: Setup Terraform | ||
uses: hashicorp/setup-terraform@v2 | ||
with: | ||
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} | ||
# - name: Setup Terraform | ||
# uses: hashicorp/setup-terraform@v2 | ||
# with: | ||
# cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} | ||
|
||
- name: Terraform Init | ||
run: terraform init | ||
# - name: Terraform Init | ||
# run: terraform init | ||
|
||
- name: Terraform Format | ||
run: terraform fmt -check | ||
# - name: Terraform Format | ||
# run: terraform fmt -check | ||
|
||
- name: Terraform Plan | ||
run: terraform plan | ||
# - name: Terraform Plan | ||
# run: terraform plan | ||
|
||
- name: Terraform Apply | ||
if: github.ref == 'refs/heads/master' && github.event_name == 'push' | ||
run: terraform apply -auto-approve | ||
# - name: Terraform Apply | ||
# if: github.ref == 'refs/heads/master' && github.event_name == 'push' | ||
# run: terraform apply -auto-approve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
name: tfsec-pr-commenter | ||
on: | ||
pull_request: | ||
jobs: | ||
tfsec: | ||
name: tfsec PR commenter | ||
runs-on: ubuntu-latest | ||
# name: tfsec-pr-commenter | ||
# on: | ||
# pull_request: | ||
# jobs: | ||
# tfsec: | ||
# name: tfsec PR commenter | ||
# runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
# permissions: | ||
# contents: read | ||
# pull-requests: write | ||
|
||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@master | ||
- name: tfsec | ||
uses: aquasecurity/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# steps: | ||
# - name: Clone repo | ||
# uses: actions/checkout@master | ||
# - name: tfsec | ||
# uses: aquasecurity/[email protected] | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} |