-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (38 loc) · 1.26 KB
/
terraform-docs.yml
File metadata and controls
43 lines (38 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
# Copyright (c) NetApp, Inc.
# SPDX-License-Identifier: Apache-2.0
name: "Documentation: terraform-docs"
on:
pull_request:
paths:
- 'Infrastructure_as_Code/Terraform/**'
push:
paths:
- 'Infrastructure_as_Code/Terraform/**'
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
strategy:
matrix:
directory:
- 'Infrastructure_as_Code/Terraform/deploy-fsx-ontap/module'
- 'Infrastructure_as_Code/Terraform/deploy-fsx-ontap/standalone-module'
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
egress-policy: audit
- name: Checkout pull request
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Render documentation and push changes back to branch
uses: step-security/terraform-docs-action@863375b3d57d153d9cb47f73abcc2d4d3d00c101 # v1.4.5
with:
working-dir: ${{ matrix.directory }}
config-file: ".terraform-docs.yml"
output-file: "README.md"
output-method: inject
git-push: true