@@ -5,6 +5,8 @@ on: # yamllint disable-line rule:truthy
55 merge_group :
66 types :
77 - checks_requested
8+ # We use the default activity types for the pull_request event as specified here:
9+ # https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request
810 pull_request :
911 push :
1012 repository_dispatch :
2325 PIP_CACHE_DIR : ~/.cache/pip
2426 PRE_COMMIT_CACHE_DIR : ~/.cache/pre-commit
2527 RUN_TMATE : ${{ secrets.RUN_TMATE }}
26- TERRAFORM_DOCS_REPO_BRANCH_NAME : improvement/support_atx_closed_markdown_headers
28+ TERRAFORM_DOCS_REPO_BRANCH_NAME : cisagov
2729 TERRAFORM_DOCS_REPO_DEPTH : 1
2830 TERRAFORM_DOCS_REPO_URL : https://github.com/mcdonnnj/terraform-docs.git
2931
@@ -118,18 +120,20 @@ jobs:
118120 name : Lookup Go cache directory
119121 run : |
120122 echo "dir=$(go env GOCACHE)" >> $GITHUB_OUTPUT
121- - uses : actions/cache@v4
123+ - uses : actions/cache@v5
122124 env :
123- BASE_CACHE_KEY : ${{ github.job }}-${{ runner.os }}-\
124- py${{ steps.setup-python.outputs.python-version }}-\
125- go${{ steps.setup-go.outputs.go-version }}-\
126- packer${{ steps.setup-env.outputs.packer-version }}-\
127- tf${{ steps.setup-env.outputs.terraform-version }}-
125+ BASE_CACHE_KEY : >-
126+ ${{ github.job }}-${{ runner.os
127+ }}-py${{ steps.setup-python.outputs.python-version
128+ }}-go${{ steps.setup-go.outputs.go-version
129+ }}-packer${{ steps.setup-env.outputs.packer-version
130+ }}-tf${{ steps.setup-env.outputs.terraform-version }}-
128131 with :
129- key : ${{ env.BASE_CACHE_KEY }}\
130- ${{ hashFiles('**/requirements-test.txt') }}-\
131- ${{ hashFiles('**/requirements.txt') }}-\
132- ${{ hashFiles('**/.pre-commit-config.yaml') }}
132+ key : >-
133+ ${{ env.BASE_CACHE_KEY }}${{
134+ hashFiles('**/requirements-test.txt') }}-${{
135+ hashFiles('**/requirements.txt') }}-${{
136+ hashFiles('**/.pre-commit-config.yaml') }}
133137 # Note that the .terraform directory IS NOT included in the
134138 # cache because if we were caching, then we would need to use
135139 # the `-upgrade=true` option. This option blindly pulls down the
@@ -169,10 +173,13 @@ jobs:
169173 PACKAGE_VERSION : ${{ steps.setup-env.outputs.staticcheck-version }}
170174 run : go install ${PACKAGE_URL}@${PACKAGE_VERSION}
171175 # TODO: https://github.com/cisagov/skeleton-generic/issues/165
172- # We are temporarily using @mcdonnnj's forked branch of terraform-docs
173- # until his PR: https://github.com/terraform-docs/terraform-docs/pull/745
174- # is approved. This temporary fix will allow for ATX header support when
175- # terraform-docs is run during linting.
176+ # We are temporarily using a branch of @mcdonnnj's fork of terraform-docs that
177+ # groups changes from his PRs until they are approved and merged:
178+ # https://github.com/terraform-docs/terraform-docs/pull/745
179+ # https://github.com/terraform-docs/terraform-docs/pull/901
180+ # This temporary fix will allow for ATX header support when terraform-docs is run
181+ # during linting and output delimiter rows with cell spacing that passes
182+ # Markdownlint's MD060/table-column-style rule.
176183 - name : Clone ATX headers branch from terraform-docs fork
177184 run : |
178185 git clone \
@@ -187,7 +194,7 @@ jobs:
187194 -o $(go env GOPATH)/bin/terraform-docs
188195 - name : Install dependencies
189196 run : |
190- python -m pip install --upgrade pip setuptools wheel
197+ python -m pip install --upgrade pip setuptools
191198 pip install --upgrade --requirement requirements-test.txt
192199 - name : Set up pre-commit hook environments
193200 run : pre-commit install-hooks
0 commit comments