Skip to content

Commit 6e2ee4c

Browse files
feat(sec): pinned all versions to sha hashs
* changed checkov framework
1 parent 4b99c3d commit 6e2ee4c

18 files changed

Lines changed: 69 additions & 66 deletions

.github/actions/helm-release-oci/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ runs:
6060
using: composite
6161
steps:
6262
- name: Setup Helm
63-
uses: azure/setup-helm@v4
63+
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
6464
with:
6565
version: v3.18.3
6666

@@ -156,7 +156,7 @@ runs:
156156
# Intentional: version bump commit runs only when chart push is enabled.
157157
- name: Commit file to branch
158158
if: ${{ inputs.push_chart == 'true' && inputs.bump_version_in_git == 'true' }}
159-
uses: stefanzweifel/git-auto-commit-action@f53a62c26ed5971dd2ed8768e4142f08c767ea37
159+
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7
160160
with:
161161
branch: ${{ inputs.bump_version_git_branch != '' && inputs.bump_version_git_branch || github.ref_name }}
162162
commit_message: "Helm bumped up version and appVersion [skip ci]"

.github/workflows/actionlint-test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: Invalid fixtures fail
1313
runs-on: ubuntu-24.04
1414
steps:
15-
- uses: actions/checkout@v6
15+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1616

1717
- name: Prepare invalid workflow fixture
1818
shell: bash
@@ -24,7 +24,7 @@ jobs:
2424
- name: Run actionlint on invalid workflow fixture
2525
id: invalid-workflow-lint
2626
continue-on-error: true
27-
uses: devops-actions/actionlint@fff09c1c1b540ae616ebbc7e5d49de02b44f9cbb
27+
uses: devops-actions/actionlint@469810fd82c015d3c43815cd2b0e4d02eecc4819 # v0.1.11
2828

2929
- name: Assert workflow lint failed
3030
if: ${{ steps.invalid-workflow-lint.outcome == 'success' }}
@@ -43,7 +43,7 @@ jobs:
4343
- name: Run composite action lint on invalid fixture
4444
id: composite-action-lint
4545
continue-on-error: true
46-
uses: bettermarks/composite-action-lint@673212ed410dde8377d1d5bce860152e85064a2d
46+
uses: bettermarks/composite-action-lint@673212ed410dde8377d1d5bce860152e85064a2d # master
4747
with:
4848
actions: .github/actions/*/action.yaml
4949

.github/workflows/actionlint.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
name: Lint workflows and local actions
1717
runs-on: ubuntu-24.04
1818
steps:
19-
- uses: actions/checkout@v6
19+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2020

2121
- name: Run actionlint with reviewdog
2222
if: ${{ github.event_name == 'pull_request' }}
23-
uses: reviewdog/action-actionlint@d39025c0fb1cc41ac827852403ea94804b0e6907
23+
uses: reviewdog/action-actionlint@0d952c597ef8459f634d7145b0b044a9699e5e43 # v1
2424
with:
2525
reporter: github-pr-check
2626
fail_level: any
@@ -29,10 +29,10 @@ jobs:
2929

3030
- name: Run actionlint on workflows
3131
if: ${{ github.event_name == 'push' }}
32-
uses: devops-actions/actionlint@fff09c1c1b540ae616ebbc7e5d49de02b44f9cbb
32+
uses: devops-actions/actionlint@469810fd82c015d3c43815cd2b0e4d02eecc4819 # v0.1.11
3333

3434
- name: Validate local actions
3535
if: ${{ always() }}
36-
uses: bettermarks/composite-action-lint@673212ed410dde8377d1d5bce860152e85064a2d
36+
uses: bettermarks/composite-action-lint@673212ed410dde8377d1d5bce860152e85064a2d # master
3737
with:
3838
actions: .github/actions/*/action.y*ml

.github/workflows/create-release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ jobs:
1919
runs-on: ${{ startsWith(inputs.RUNNER, '[') && fromJSON(inputs.RUNNER) || inputs.RUNNER }}
2020
steps:
2121
- name: Generate GitHub App token
22-
uses: actions/create-github-app-token@v2
22+
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
2323
id: app-token
2424
with:
2525
app-id: ${{ secrets.GITHUB_APP_ID }}
2626
private-key: ${{ secrets.GITHUB_APP_KEY }}
2727
- name: Bump version and push tag
2828
id: tag_version
29-
uses: mathieudutour/github-tag-action@d745f2e74aaf1ee82e747b181f7a0967978abee0
29+
uses: mathieudutour/github-tag-action@a22cf08638b34d5badda920f9daf6e72c477b07b # v6.2
3030
with:
3131
github_token: ${{ steps.app-token.outputs.token }}
3232

3333
- name: Create a GitHub release
34-
uses: ncipollo/release-action@d82d180c1d8147d23544f9d2610bf8a1941af66e
34+
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1
3535
with:
3636
tag: ${{ steps.tag_version.outputs.new_tag }}
3737
name: Release ${{ steps.tag_version.outputs.new_tag }}

.github/workflows/docker-build.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,14 @@ jobs:
145145
scan_artifact_name: docker-build-trivy-scan-report
146146
sbom_artifact_name: docker-build-cyclonedx-sbom
147147
steps:
148-
- uses: actions/checkout@v6
148+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
149149
- name: Set up Docker Buildx
150-
uses: docker/setup-buildx-action@v3
150+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
151151
- name: Set up QEMU
152-
uses: docker/setup-qemu-action@v3
152+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
153153
# Auth
154154
## AWS
155-
- uses: aws-actions/configure-aws-credentials@v6
155+
- uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6
156156
if: inputs.DOCKER_PUSH && inputs.AWS_REGION != ''
157157
with:
158158
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
@@ -161,26 +161,26 @@ jobs:
161161
- name: Login to Amazon ECR
162162
if: inputs.DOCKER_PUSH && inputs.AWS_REGION != ''
163163
id: ecr
164-
uses: aws-actions/amazon-ecr-login@v2
164+
uses: aws-actions/amazon-ecr-login@183a1442edf41672e66566b7fc560e297a290896 # v2
165165
## GHCR
166166
- name: Login to GitHub Container Registry
167167
if: inputs.DOCKER_PUSH && inputs.REGISTRY == 'ghcr.io' && inputs.AWS_REGION == ''
168-
uses: docker/login-action@v3
168+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
169169
with:
170170
registry: ghcr.io
171171
username: ${{ inputs.USERNAME != '' && inputs.USERNAME || github.actor }}
172172
password: ${{ secrets.TOKEN }}
173173
## Other
174174
- name: Login to registry (using username and token)
175175
if: inputs.DOCKER_PUSH && inputs.REGISTRY != '' && inputs.REGISTRY != 'ghcr.io' && inputs.USERNAME != ''
176-
uses: docker/login-action@v3
176+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
177177
with:
178178
registry: ${{ inputs.REGISTRY }}
179179
username: ${{ inputs.USERNAME }}
180180
password: ${{ secrets.TOKEN }}
181181
- name: Prepare Docker meta
182182
id: meta
183-
uses: docker/metadata-action@v6
183+
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6
184184
with:
185185
images: ${{ inputs.AWS_REGION != '' && steps.ecr.outputs.registry || inputs.REGISTRY }}/${{ inputs.IMAGE != '' && inputs.IMAGE || github.repository }}
186186
flavor: |
@@ -215,7 +215,7 @@ jobs:
215215
${{ inputs.CUSTOM_TAGS }}
216216
- name: Build and push
217217
id: build_push
218-
uses: docker/build-push-action@v6
218+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
219219
with:
220220
platforms: ${{ inputs.DOCKER_PLATFORMS }}
221221
context: ${{ inputs.DOCKER_CONTEXT }}
@@ -233,7 +233,7 @@ jobs:
233233
- name: Run Trivy vulnerability scanner
234234
id: security_scan
235235
if: ${{ inputs.SECURITY_SCAN_ENABLED && inputs.DOCKER_PUSH }}
236-
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1
236+
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
237237
env:
238238
TRIVY_EXIT_ON_EOL: "1"
239239
with:
@@ -246,7 +246,7 @@ jobs:
246246
severity: "${{ inputs.SECURITY_SCAN_SEVERITY }}"
247247
- name: Generate SBOM (CycloneDX)
248248
if: ${{ always() && inputs.SBOM_ENABLED && inputs.DOCKER_PUSH }}
249-
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1
249+
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
250250
with:
251251
image-ref: "${{ fromJSON(steps.meta.outputs.json).tags[0] }}"
252252
hide-progress: true
@@ -269,13 +269,13 @@ jobs:
269269
fi
270270
- name: Upload scan report artifact
271271
if: ${{ always() && inputs.SECURITY_SCAN_ENABLED && inputs.DOCKER_PUSH && hashFiles('scan-report.txt') != '' }}
272-
uses: actions/upload-artifact@v7
272+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
273273
with:
274274
name: docker-build-trivy-scan-report
275275
path: scan-report.txt
276276
- name: Upload SBOM artifact
277277
if: ${{ always() && inputs.SBOM_ENABLED && inputs.DOCKER_PUSH && hashFiles('sbom.json') != '' }}
278-
uses: actions/upload-artifact@v7
278+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
279279
with:
280280
name: docker-build-cyclonedx-sbom
281281
path: sbom.json
@@ -296,7 +296,7 @@ jobs:
296296
- name: Send Slack notification
297297
if: ${{ always() && steps.check_slack_webhook.outputs.has_webhook == 'true' && (job.status != 'success' || inputs.SLACK_NOTIFY_ON_SUCCESS) }}
298298
continue-on-error: true
299-
uses: slackapi/slack-github-action@fd998911a4a39ce77c6ae6221df1f58471594105
299+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2
300300
with:
301301
webhook: ${{ secrets.SLACK_WEBHOOK }}
302302
webhook-type: incoming-webhook

.github/workflows/functional-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ jobs:
2828
security_trivy: ${{ steps.filter.outputs.security_trivy }}
2929
framework: ${{ steps.filter.outputs.framework }}
3030
steps:
31-
- uses: actions/checkout@v6
31+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3232
with:
3333
fetch-depth: 0
3434

3535
- name: Match changed components
3636
id: filter
37-
uses: dorny/paths-filter@61f87a10cd2c304679af17bb73ef192addf33c1c
37+
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4
3838
with:
3939
list-files: shell
4040
filters: |

.github/workflows/helm-release-ecr.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ jobs:
9898
steps:
9999
- name: Generate GitHub App token
100100
if: ${{ inputs.push_chart && inputs.bump_version_in_git }}
101-
uses: actions/create-github-app-token@v2
101+
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
102102
id: app-token
103103
with:
104104
app-id: ${{ secrets.GITHUB_APP_ID }}
105105
private-key: ${{ secrets.GITHUB_APP_KEY }}
106106

107-
- uses: actions/checkout@v6
107+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
108108
with:
109109
token: ${{ steps.app-token.outputs.token != '' && steps.app-token.outputs.token || github.token }}
110110
fetch-depth: 0
@@ -122,15 +122,15 @@ jobs:
122122
123123
- name: Configure AWS credentials (OIDC)
124124
if: ${{ inputs.push_chart }}
125-
uses: aws-actions/configure-aws-credentials@v6
125+
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6
126126
with:
127127
role-to-assume: ${{ inputs.aws_role_to_assume }}
128128
aws-region: ${{ inputs.aws_region }}
129129

130130
- name: Login to Amazon ECR
131131
if: ${{ inputs.push_chart }}
132132
id: login-ecr
133-
uses: aws-actions/amazon-ecr-login@v2
133+
uses: aws-actions/amazon-ecr-login@183a1442edf41672e66566b7fc560e297a290896 # v2
134134

135135
- name: Run OCI core
136136
id: core

.github/workflows/helm-release-gar.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ jobs:
9898
steps:
9999
- name: Generate GitHub App token
100100
if: ${{ inputs.push_chart && inputs.bump_version_in_git }}
101-
uses: actions/create-github-app-token@v2
101+
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
102102
id: app-token
103103
with:
104104
app-id: ${{ secrets.GITHUB_APP_ID }}
105105
private-key: ${{ secrets.GITHUB_APP_KEY }}
106106

107-
- uses: actions/checkout@v6
107+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
108108
with:
109109
token: ${{ steps.app-token.outputs.token != '' && steps.app-token.outputs.token || github.token }}
110110
fetch-depth: 0
@@ -123,15 +123,15 @@ jobs:
123123
- name: Authenticate to Google Cloud
124124
id: gcp_auth
125125
if: ${{ inputs.push_chart }}
126-
uses: google-github-actions/auth@v3
126+
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3
127127
with:
128128
token_format: access_token
129129
workload_identity_provider: ${{ inputs.gcp_workload_identity_provider }}
130130
service_account: ${{ inputs.gcp_service_account }}
131131

132132
- name: Login to GAR
133133
if: ${{ inputs.push_chart }}
134-
uses: docker/login-action@v4
134+
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4
135135
with:
136136
registry: ${{ inputs.gar_registry }}
137137
username: oauth2accesstoken

.github/workflows/helm-release-github.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,20 @@ jobs:
9292
steps:
9393
- name: Generate GitHub App token
9494
if: ${{ inputs.push_chart && inputs.bump_version_in_git }}
95-
uses: actions/create-github-app-token@v2
95+
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
9696
id: app-token
9797
with:
9898
app-id: ${{ secrets.GITHUB_APP_ID }}
9999
private-key: ${{ secrets.GITHUB_APP_KEY }}
100100

101-
- uses: actions/checkout@v6
101+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
102102
with:
103103
token: ${{ steps.app-token.outputs.token != '' && steps.app-token.outputs.token || github.token }}
104104
fetch-depth: 0
105105

106106
- name: Login to GitHub Registry
107107
if: ${{ inputs.push_chart }}
108-
uses: docker/login-action@v3
108+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
109109
with:
110110
registry: ${{ inputs.ghcr_registry }}
111111
username: ${{ github.actor }}

.github/workflows/helm-release-oci-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Case - OCI core action succeeds
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v6
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1717
- name: Run OCI core action
1818
id: core
1919
uses: ./.github/actions/helm-release-oci

0 commit comments

Comments
 (0)