Skip to content

Commit 1af944e

Browse files
kranurag7mattray
andauthored
fix helm chart publish workflow (#220)
uses SHAs for pinning third party action workflows. Signed-off-by: kranurag7 <[email protected]> Co-authored-by: Matt Ray <[email protected]>
1 parent ce64778 commit 1af944e

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.github/workflows/helm-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
2222
with:
2323
fetch-depth: 0
2424

25-
- uses: azure/setup-helm@v3
25+
- uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3
2626
with:
2727
version: 'v3.15.2'
2828

29-
- uses: actions/setup-python@v4
29+
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4
3030
with:
3131
python-version: '3.9'
3232
check-latest: true
3333

3434
- name: Set up chart-testing
35-
uses: helm/[email protected]
35+
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
3636

3737
- name: List changed charts
3838
id: list-changed
@@ -49,7 +49,7 @@ jobs:
4949
run: ct lint --debug --config ./.github/configs/ct.yaml --lint-conf ./.github/configs/lintconf.yaml
5050

5151
- name: Create kind cluster
52-
uses: helm/[email protected]
52+
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
5353
if: steps.list-changed.outputs.changed == 'true'
5454

5555
- name: Run chart-testing (install)

.github/workflows/publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
2222
with:
2323
fetch-depth: 0
2424

2525
- name: Install Helm
26-
uses: azure/setup-helm@v3
26+
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3
2727

2828
- name: Configure Git
2929
run: |
@@ -39,20 +39,21 @@ jobs:
3939
run: |
4040
helm-docs .
4141
- name: Login to GHCR
42-
uses: docker/login-action@v3
42+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
4343
with:
4444
registry: ghcr.io
4545
username: ${ GITHUB_REPOSITORY_OWNER }
4646
password: ${{ secrets.GITHUB_TOKEN }}
4747
- name: Run chart-releaser
48-
uses: helm/chart-releaser-action@1.6.0
48+
uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0
4949
with:
5050
charts_dir: charts
5151
config: './.github/configs/cr.yaml'
5252
env:
5353
CR_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
5454
CR_RELEASE_NAME_TEMPLATE: '{{ .Version }}-helm'
55-
- uses: sigstore/[email protected]
55+
56+
- uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0
5657
- name: Push chart to GHCR
5758
env:
5859
COSIGN_EXPERIMENTAL: 1
@@ -65,7 +66,7 @@ jobs:
6566
helm push "${pkg}" oci://ghcr.io/"${GITHUB_REPOSITORY_OWNER}"/charts |& tee .digest
6667
cosign sign $(cat .digest | awk -F "[, ]+" '/Pushed/{print $NF}')
6768
done
68-
- uses: oras-project/setup-oras@v1
69+
- uses: oras-project/setup-oras@ca28077386065e263c03428f4ae0c09024817c93 # v1
6970
with:
7071
version: 1.2.0
7172
- name: Push chart to GHCR

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v8
10+
- uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8
1111
with:
1212
stale-issue-message: 'This issue has been marked as stale because it has been open for 180 days with no activity. Please remove the stale label or comment or this issue will be closed in 5 days.'
1313
close-issue-message: 'This issue was closed because it has been inactive for 185 days with no activity.'

0 commit comments

Comments
 (0)