Skip to content

Commit 835a299

Browse files
authored
Updated CI workflow identity check stage (#15)
1 parent 1e0a184 commit 835a299

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
runs-on: ubuntu-latest
8787
steps:
8888
- name: Configure AWS credentials
89-
uses: aws-actions/configure-aws-credentials@v1
89+
uses: aws-actions/configure-aws-credentials@v1.7.0
9090
with:
9191
aws-region: ${{ secrets.AWS_REGION }}
9292
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ repos:
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_tflint
7+
args:
8+
- '--args=--only=terraform_deprecated_interpolation'
9+
- '--args=--only=terraform_deprecated_index'
10+
- '--args=--only=terraform_unused_declarations'
11+
- '--args=--only=terraform_comment_syntax'
12+
- '--args=--only=terraform_documented_outputs'
13+
- '--args=--only=terraform_documented_variables'
14+
- '--args=--only=terraform_typed_variables'
15+
- '--args=--only=terraform_module_pinned_source'
16+
- '--args=--only=terraform_naming_convention'
17+
- '--args=--only=terraform_required_version'
18+
- '--args=--only=terraform_required_providers'
19+
- '--args=--only=terraform_standard_module_structure'
20+
- '--args=--only=terraform_workspace_remote'
721
- id: terraform_validate
822
- repo: https://github.com/pre-commit/pre-commit-hooks
923
rev: v4.4.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Please see [TERRAFORM.md](./TERRAFORM.md)
3939

4040
Retrieve temporary credentials:
4141

42-
https://github.com/saidsef/terraform-aws-github-oidc/blob/8e9ff77e824ad117cb42ee98f3ed755d28798f66/.github/workflows/ci.yaml#L47-L54
42+
https://github.com/saidsef/terraform-aws-github-oidc/blob/29d6020587d06986388d84b2d10cbe266a1ea484/.github/workflows/ci.yaml#L79-L94
4343

4444
## Source
4545

0 commit comments

Comments
 (0)