Skip to content

Linting changes (#23) #14

Linting changes (#23)

Linting changes (#23) #14

Workflow file for this run

name: release
on:
push:
tags:
- v*
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: terraform
steps:
- uses: actions/checkout@v4
- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
- name: Terraform Init
id: init
run: terraform init
- name: Terraform Validate
id: validate
run: terraform validate
checkov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Scan with Checkov
id: checkov
uses: bridgecrewio/checkov-action@v12
with:
directory: terraform
framework: terraform
codeql:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: python
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
semgrep:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
container:
image: semgrep/semgrep
steps:
- uses: actions/checkout@v4
- run: semgrep ci --config "p/ci" --config "p/python" --config "p/owasp-top-ten" --sarif --output=semgrep.sarif
release:
needs: [test, checkov, codeql, semgrep]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: "marvinpinto/[email protected]"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false