9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- name : Checkout
12
- uses : actions/checkout@v3
12
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
13
13
- name : Import GPG key for signing commits
14
14
run : |
15
15
echo -n "$GPG_SIGNING_KEY" | gpg --import
@@ -19,24 +19,24 @@ jobs:
19
19
env :
20
20
GPG_SIGNING_KEY : ${{ secrets.GPG_SIGNING_KEY }}
21
21
- name : bump app version
22
- uses : mikefarah/yq@v4.30.4
22
+ uses : mikefarah/yq@a198f72367ce9da70b564a2cc25399de8e27bf37 # v4.35.2
23
23
with :
24
24
cmd : yq -i '.appVersion = "${{ github.event.registry_package.package_version.container_metadata.tag.name }}"' charts/pipeline-controller/Chart.yaml
25
25
- name : get chart version
26
26
id : get_chart_version
27
- uses : mikefarah/yq@v4.30.4
27
+ uses : mikefarah/yq@a198f72367ce9da70b564a2cc25399de8e27bf37 # v4.35.2
28
28
with :
29
29
cmd : yq '.version' charts/pipeline-controller/Chart.yaml
30
30
- name : increment chart version
31
31
id : inc_chart_version
32
32
run : echo NEW_CHART_VERSION=$(echo ${{ steps.get_chart_version.outputs.result }} | awk -F. -v OFS=. '{print $1,++$2,0}') >> $GITHUB_OUTPUT
33
33
- name : update chart version
34
- uses : mikefarah/yq@v4.30.4
34
+ uses : mikefarah/yq@a198f72367ce9da70b564a2cc25399de8e27bf37 # v4.35.2
35
35
with :
36
36
cmd : yq -i '.version = "${{ steps.inc_chart_version.outputs.NEW_CHART_VERSION }}"' charts/pipeline-controller/Chart.yaml
37
37
- name : Create Pull Request
38
38
id : cpr
39
- uses : peter-evans/create-pull-request@v4
39
+ uses : peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
40
40
with :
41
41
token : ${{ secrets.GHCR_TOKEN }}
42
42
commit-message : |
@@ -60,22 +60,22 @@ jobs:
60
60
runs-on : ubuntu-latest
61
61
steps :
62
62
- name : Checkout
63
- uses : actions/checkout@v3
63
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
64
64
with :
65
65
repository : weaveworks/weave-gitops-enterprise
66
66
token : ${{ secrets.GHCR_TOKEN }}
67
67
- name : Setup Helm
68
- uses : azure/setup-helm@v3
68
+ uses : azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
69
69
with :
70
70
version : v3.10.1
71
71
- name : Debug
72
72
run : echo '${{ toJSON(github.event) }}'
73
73
- name : Update pipeline-controller chart version
74
- uses : mikefarah/yq@v4.30.4
74
+ uses : mikefarah/yq@a198f72367ce9da70b564a2cc25399de8e27bf37 # v4.35.2
75
75
with :
76
76
cmd : yq -i '(.dependencies[] | select(.name=="pipeline-controller") | .version) |= "${{ github.event.registry_package.package_version.container_metadata.tag.name }}"' charts/mccp/Chart.yaml
77
77
- name : Login to GitHub Container Registry
78
- uses : docker/login-action@v2
78
+ uses : docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
79
79
with :
80
80
registry : ghcr.io
81
81
username : ${{ github.actor }}
84
84
run : cd ./charts/mccp && helm dependency update
85
85
- name : Create Pull Request
86
86
id : cpr
87
- uses : peter-evans/create-pull-request@v4
87
+ uses : peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
88
88
with :
89
89
token : ${{ secrets.GHCR_TOKEN }}
90
90
commit-message : |
0 commit comments