Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/kics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

- name: Upload KICS SARIF
if: env.ADVANCED_SECURITY == 'true'
uses: github/codeql-action/upload-sarif@v4

Check warning on line 64 in .github/workflows/kics.yml

View workflow job for this annotation

GitHub Actions / kics-iac

[LOW] Unpinned Actions Full Length Commit SHA

Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a repository fork.
continue-on-error: true
with:
sarif_file: "results-dir/results.sarif"
Expand All @@ -70,7 +70,7 @@

- name: Upload KICS results as artifacts
if: env.ADVANCED_SECURITY == 'true'
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v7
with:
name: kics-results
path: results-dir/
4 changes: 2 additions & 2 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
- name: Get changed files
id: changes
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: tj-actions/changed-files@v47

Check warning on line 38 in .github/workflows/test-and-release.yml

View workflow job for this annotation

GitHub Actions / kics-iac

[LOW] Unpinned Actions Full Length Commit SHA

Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a repository fork.

- name: Detect changed charts
id: matrix
Expand Down Expand Up @@ -124,8 +124,8 @@
steps:
- uses: actions/checkout@v6

- uses: azure/setup-helm@v4.3.1

Check warning on line 127 in .github/workflows/test-and-release.yml

View workflow job for this annotation

GitHub Actions / kics-iac

[LOW] Unpinned Actions Full Length Commit SHA

Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a repository fork.
- uses: mikefarah/yq@v4.52.4

Check warning on line 128 in .github/workflows/test-and-release.yml

View workflow job for this annotation

GitHub Actions / kics-iac

[LOW] Unpinned Actions Full Length Commit SHA

Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a repository fork.
- uses: azure/setup-kubectl@v4

- name: Update Helm repositories
Expand Down Expand Up @@ -169,7 +169,7 @@
helm package . --version ${{ env.CHART_VERSION }}

- name: Upload chart artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v7
with:
name: chart-${{ matrix.chart }}-${{ env.CHART_VERSION }}
path: charts/${{ matrix.chart }}/${{ matrix.chart }}-${{ env.CHART_VERSION }}.tgz
Expand All @@ -190,8 +190,8 @@
steps:
- uses: actions/checkout@v6

- uses: azure/setup-helm@v4.3.1

Check warning on line 193 in .github/workflows/test-and-release.yml

View workflow job for this annotation

GitHub Actions / kics-iac

[LOW] Unpinned Actions Full Length Commit SHA

Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a repository fork.
- uses: mikefarah/yq@v4.52.4

Check warning on line 194 in .github/workflows/test-and-release.yml

View workflow job for this annotation

GitHub Actions / kics-iac

[LOW] Unpinned Actions Full Length Commit SHA

Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a repository fork.

- name: Get chart version
id: vars
Expand All @@ -202,13 +202,13 @@
echo "REPOSITORY=${repository@L}" >> $GITHUB_ENV

- name: Download chart artifact
uses: actions/download-artifact@v7
uses: actions/download-artifact@v8
with:
name: chart-${{ matrix.chart }}-${{ env.CHART_VERSION }}
path: charts/${{ matrix.chart }}/

- name: Login to GitHub Container Registry
uses: docker/login-action@v3

Check warning on line 211 in .github/workflows/test-and-release.yml

View workflow job for this annotation

GitHub Actions / kics-iac

[LOW] Unpinned Actions Full Length Commit SHA

Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a repository fork.
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
Loading