build(deps): bump bridgecrewio/checkov-action from 12.2431.0 to 12.2649.0 #119
Workflow file for this run
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
name: Tf Docs | |
on: | |
pull_request: | |
branches: | |
- "main" | |
permissions: | |
contents: write | |
jobs: | |
generate-matrix: | |
name: Generate matrix | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.get-matrix.outputs.matrix }} | |
steps: | |
- name: Get matrix | |
id: get-matrix | |
uses: hellofresh/action-changed-files@v3 | |
with: | |
pattern: modules/(?P<module>[^/]+) | |
write-docs: | |
runs-on: ubuntu-latest | |
needs: generate-matrix | |
strategy: | |
fail-fast: false | |
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }} | |
if: ${{ fromJson(needs.generate-matrix.outputs.matrix).include[0] }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Render terraform docs inside the README.md and push changes back to PR branch | |
uses: terraform-docs/[email protected] | |
with: | |
working-dir: modules/${{ matrix.module }} | |
output-file: README.md | |
output-method: inject | |
git-push: "true" | |
git-commit-message: "docs: update README.md with terraform-docs" |