Skip to content

[WIP] feat: Implement delta export functionality #218

[WIP] feat: Implement delta export functionality

[WIP] feat: Implement delta export functionality #218

Workflow file for this run

name: TFLint Checks
on:
push:
pull_request:
branches:
- main
permissions:
contents: read
security-events: write
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Check security features
id: security-features
uses: ./.github/actions/security-features
- name: Cache plugin directory
uses: actions/cache@v4
with:
path: ~/.tflint.d/plugins
key: tflint-${{ hashFiles('.tflint.hcl') }}
- uses: terraform-linters/setup-tflint@v6
name: Setup TFLint
- name: Show version
run: tflint --version
- name: Init TFLint
run: tflint --init
- name: Run TFLint
# Run TFLint, outputting the results to a SARIF file. We use `tee` so
# that we can still see the output in the logs, and capture the exit
# code properly with `pipefail`.
run: |
set -o pipefail
tflint --format sarif --recursive \
--config "$GITHUB_WORKSPACE/.tflint.hcl" \
| tee tflint-results.sarif
exit "${PIPESTATUS[0]}"
- name: Parse SARIF file for annotations
if: always()
uses: jontyms/[email protected]
with:
sarif-file: tflint-results.sarif
annotation-level: notice
# When run on main, if SARIF uploads are available, we want to upload the
# SARIF file to GitHub.
- name: Upload SARIF result
if: always() && github.ref == 'refs/heads/main' && steps.security-features.outputs.sarif == 'true'
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: tflint-results.sarif