Skip to content

Commit 8322260

Browse files
committed
Zizmor warning clean-ups.
Don't persist the credentials in git. Specifies the hash rather than a pinned version.
1 parent 64eb4ff commit 8322260

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/apply.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
steps:
2323
- name: Checkout code
2424
uses: actions/checkout@v4
25+
with:
26+
persist-credentials: false
2527

2628
- name: terraform apply
2729
# v1.44.0
@@ -40,7 +42,8 @@ jobs:
4042
4143
- name: Commit changes
4244
if: ${{ always() }}
43-
uses: devops-infra/action-commit-push@v0.10.0
45+
# v0.10.0
46+
uses: devops-infra/action-commit-push@b8c990ac36bac67f71133ad7ec3da1d7abf4d57e
4447
with:
4548
github_token: "${{ secrets.TERRAFORM_MANAGEMENT_GITHUB_TOKEN }}"
4649
commit_prefix: "[AUTO]"

.github/workflows/member-verification.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
16+
with:
17+
persist-credentials: false
1618

1719
- name: Check PR title format
1820
id: check-title
@@ -85,4 +87,4 @@ jobs:
8587
repo: context.repo.repo,
8688
issue_number: context.issue.number,
8789
labels: ['verification-needed']
88-
});
90+
});

.github/workflows/plan.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222
with:
2323
ref: "${{ github.event.pull_request.head.ref }}"
24+
persist-credentials: false
2425

2526

2627
- name: terraform fmt
@@ -29,7 +30,8 @@ jobs:
2930
path: "terraform"
3031

3132
- name: Commit changes
32-
uses: devops-infra/action-commit-push@v0.9.2
33+
# v0.9.2
34+
uses: devops-infra/action-commit-push@be5ba37125c79eb0016cbd8cc385f0aa160538c5
3335
with:
3436
github_token: "${{ secrets.GITHUB_TOKEN }}"
3537
commit_prefix: "[AUTO]"
@@ -48,6 +50,8 @@ jobs:
4850
steps:
4951
- name: Checkout code
5052
uses: actions/checkout@v4
53+
with:
54+
persist-credentials: false
5155

5256
- name: terraform plan
5357
# v1.44.0

0 commit comments

Comments
 (0)