Skip to content

Commit

Permalink
Disable github workflows
Browse files Browse the repository at this point in the history
These need updating
  • Loading branch information
richardhallett committed Nov 14, 2023
1 parent 64ca420 commit d0c7906
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 47 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/terraform.yml
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
34 changes: 17 additions & 17 deletions .github/workflows/tfsec.yml
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 }}

0 comments on commit d0c7906

Please sign in to comment.