6
6
push :
7
7
branches :
8
8
- main
9
+
10
+ permissions : {}
11
+
9
12
env :
10
13
REGISTRY_USER : ${{ github.actor }}
11
14
REGISTRY_PASSWORD : ${{ github.token }}
@@ -24,11 +27,12 @@ jobs:
24
27
install_latest : [ true ]
25
28
steps :
26
29
- name : Checkout repository
27
- uses : actions/checkout@v3
30
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
28
31
with :
32
+ persist-credentials : false
29
33
ref : " main"
30
34
- name : Log in to ghcr.io
31
- uses : redhat-actions/podman-login@v1
35
+ uses : redhat-actions/podman-login@4934294ad0449894bcd1e9f191899d7292469603 # v1
32
36
with :
33
37
username : ${{ env.REGISTRY_USER }}
34
38
password : ${{ env.REGISTRY_PASSWORD }}
53
57
buildah push curl-dev-debian:master "docker://ghcr.io/curl/curl-container/curl-dev-debian:master"
54
58
name: 'push images to github registry'
55
59
- name : Install Cosign
56
- uses : sigstore/cosign-installer@main
60
+ uses : sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 # v3
57
61
- name : Write signing key to disk (only needed for `cosign sign --key`)
58
62
run : echo "${{ secrets.COSIGN_PRIVATE_KEY }}" > cosign.key
59
63
- name : Sign image with a key
74
78
buildah push curl-dev-fedora:master "docker://ghcr.io/curl/curl-container/curl-dev-fedora:master"
75
79
name: 'push images to github registry'
76
80
- name : Install Cosign
77
- uses : sigstore/cosign-installer@main
81
+ uses : sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 # v3
78
82
- name : Write signing key to disk (only needed for `cosign sign --key`)
79
83
run : echo "${{ secrets.COSIGN_PRIVATE_KEY }}" > cosign.key
80
84
- name : Sign image with a key
0 commit comments