Skip to content

Commit fe7a56f

Browse files
authored
Updated CI workflow caller identity check stage (#15)
1 parent a9f7cf0 commit fe7a56f

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-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
id-token: write
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This Terraform module enables you to configure GitLab Runners as an AWS IAM OIDC
88
- AWS Account(s) and credentials
99
- GitLab repository
1010
- Terraform >= 1.x
11+
- ...
1112
- Profit?
1213

1314
## Deployment / Usage
@@ -37,7 +38,9 @@ Please see [TERRAFORM.md](./TERRAFORM.md)
3738

3839
## GitLab Runner
3940

40-
Retrieve temporary credentials via [GitLab Runner](https://github.com/saidsef/terraform-aws-gitlab-oidc/blob/2b26d4f844a0ed52b10c72100e744d38965ab748/.gitlab-ci.yml#L16-L28)
41+
Retrieve temporary credentials via [GitLab Runner](https://github.com/saidsef/terraform-aws-gitlab-oidc/blob/a9f7cf02fd5789b41f2aca5978c752b8fc843977/.gitlab-ci.yml#L16-L28)
42+
43+
https://github.com/saidsef/terraform-aws-gitlab-oidc/blob/a9f7cf02fd5789b41f2aca5978c752b8fc843977/.gitlab-ci.yml#L16-L28
4144

4245
## Source
4346

0 commit comments

Comments
 (0)