Skip to content

Commit

Permalink
Merge pull request #3 from nlamirault/fix/main-branch
Browse files Browse the repository at this point in the history
Clean Github Actions
  • Loading branch information
nlamirault authored Mar 14, 2022
2 parents 3b5134f + 6715223 commit fd19e29
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 88 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/pre-commit.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
- main

jobs:
update_release_draft:
Expand Down
66 changes: 7 additions & 59 deletions .github/workflows/tfsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,72 +32,20 @@ name: Tfsec
# events but only for the main branch
on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:
tfsec:
name: loki
name: crossplane
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Terraform security scan master
uses: triat/terraform-security-scan@master
with:
tfsec_actions_working_dir: 'modules/loki'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

tfsec_prometheus:
name: prometheus
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Terraform security scan master
uses: triat/terraform-security-scan@master
with:
tfsec_actions_working_dir: 'modules/prometheus'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

tfsec_thanos:
name: thanos
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Terraform security scan master
uses: triat/terraform-security-scan@master
with:
tfsec_actions_working_dir: 'modules/thanos'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

tfsec_tempo:
name: tempo
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Terraform security scan master
uses: triat/terraform-security-scan@master
with:
tfsec_actions_working_dir: 'modules/tempo'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

tfsec_grafana:
name: grafana
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Terraform security scan master
uses: triat/terraform-security-scan@master
- name: Terraform security scan module
uses: aquasecurity/tfsec-pr-commenter-action@v1.0.2
with:
tfsec_actions_working_dir: 'modules/grafana'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ github.token }}
working_dir: .

0 comments on commit fd19e29

Please sign in to comment.