@@ -15,20 +15,20 @@ jobs:
15
15
permissions : {}
16
16
name : Install Cosign and test presence in path
17
17
steps :
18
- - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3
19
- - name : Install Cosign
20
- uses : ./
21
- - name : Check install!
22
- run : cosign version
23
- - name : Check root directory
24
- run : |
25
- if [[ $(git diff --stat) != '' ]]; then
26
- echo 'should be clean'
27
- exit 1
28
- else
29
- exit 0
30
- fi
31
- shell : bash
18
+ - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
19
+ - name : Install Cosign
20
+ uses : ./
21
+ - name : Check install!
22
+ run : cosign version
23
+ - name : Check root directory
24
+ run : |
25
+ if [[ $(git diff --stat) != '' ]]; then
26
+ echo 'should be clean'
27
+ exit 1
28
+ else
29
+ exit 0
30
+ fi
31
+ shell : bash
32
32
33
33
test_existing_release_action :
34
34
# this does not run on macOS as the support for multi-arch was not added yet
@@ -39,19 +39,19 @@ jobs:
39
39
permissions : {}
40
40
name : Install existing release of Cosign and test presence in path
41
41
steps :
42
- - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3
43
- - name : Install Cosign
44
- uses : sigstore/cosign-installer@de5c6db865c272bde755152889dbda79bccb85f7 # v1.3.0
45
- - name : Check install!
46
- run : cosign version
47
- - name : Check root directory
48
- run : |
49
- if [[ $(git diff --stat) != '' ]]; then
50
- echo 'should be clean'
51
- exit 1
52
- else
53
- exit 0
54
- fi
42
+ - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
43
+ - name : Install Cosign
44
+ uses : sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b # v2.8.1
45
+ - name : Check install!
46
+ run : cosign version
47
+ - name : Check root directory
48
+ run : |
49
+ if [[ $(git diff --stat) != '' ]]; then
50
+ echo 'should be clean'
51
+ exit 1
52
+ else
53
+ exit 0
54
+ fi
55
55
56
56
test_cosign_action_custom :
57
57
runs-on : ${{ matrix.os }}
@@ -61,22 +61,22 @@ jobs:
61
61
permissions : {}
62
62
name : Install Custom Cosign and test presence in path
63
63
steps :
64
- - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3
65
- - name : Install Cosign
66
- uses : ./
67
- with :
68
- cosign-release : ' v1.8.0'
69
- - name : Check install!
70
- run : cosign version
71
- - name : Check root directory
72
- run : |
73
- if [[ $(git diff --stat) != '' ]]; then
74
- echo 'should be clean'
75
- exit 1
76
- else
77
- exit 0
78
- fi
79
- shell : bash
64
+ - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
65
+ - name : Install Cosign
66
+ uses : ./
67
+ with :
68
+ cosign-release : ' v1.8.0'
69
+ - name : Check install!
70
+ run : cosign version
71
+ - name : Check root directory
72
+ run : |
73
+ if [[ $(git diff --stat) != '' ]]; then
74
+ echo 'should be clean'
75
+ exit 1
76
+ else
77
+ exit 0
78
+ fi
79
+ shell : bash
80
80
81
81
test_cosign_action_0_6_0 :
82
82
runs-on : ${{ matrix.os }}
@@ -86,22 +86,22 @@ jobs:
86
86
permissions : {}
87
87
name : Install Cosign v0.6.0 and test presence in path
88
88
steps :
89
- - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3
90
- - name : Install Cosign
91
- uses : ./
92
- with :
93
- cosign-release : ' v0.6.0'
94
- - name : Check install!
95
- run : cosign version
96
- - name : Check root directory
97
- run : |
98
- if [[ $(git diff --stat) != '' ]]; then
99
- echo 'should be clean'
100
- exit 1
101
- else
102
- exit 0
103
- fi
104
- shell : bash
89
+ - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
90
+ - name : Install Cosign
91
+ uses : ./
92
+ with :
93
+ cosign-release : ' v0.6.0'
94
+ - name : Check install!
95
+ run : cosign version
96
+ - name : Check root directory
97
+ run : |
98
+ if [[ $(git diff --stat) != '' ]]; then
99
+ echo 'should be clean'
100
+ exit 1
101
+ else
102
+ exit 0
103
+ fi
104
+ shell : bash
105
105
106
106
test_cosign_action_0_6_0_with_pre_installed_libpcsclite1_package :
107
107
# this test is specifically for linux and pcsclite1 dependencies
@@ -112,25 +112,25 @@ jobs:
112
112
permissions : {}
113
113
name : Install Cosign v0.6.0 and test presence in path with pre installed libpcsclite1 package
114
114
steps :
115
- - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3
116
- - name : Install libpcsclite1
117
- run : |
118
- sudo apt-get update -q
119
- sudo apt-get install -yq libpcsclite1
120
- - name : Install Cosign
121
- uses : ./
122
- with :
123
- cosign-release : ' v0.6.0'
124
- - name : Check install!
125
- run : cosign version
126
- - name : Check root directory
127
- run : |
128
- if [[ $(git diff --stat) != '' ]]; then
129
- echo 'should be clean'
130
- exit 1
131
- else
132
- exit 0
133
- fi
115
+ - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
116
+ - name : Install libpcsclite1
117
+ run : |
118
+ sudo apt-get update -q
119
+ sudo apt-get install -yq libpcsclite1
120
+ - name : Install Cosign
121
+ uses : ./
122
+ with :
123
+ cosign-release : ' v0.6.0'
124
+ - name : Check install!
125
+ run : cosign version
126
+ - name : Check root directory
127
+ run : |
128
+ if [[ $(git diff --stat) != '' ]]; then
129
+ echo 'should be clean'
130
+ exit 1
131
+ else
132
+ exit 0
133
+ fi
134
134
135
135
test_cosign_action_wrong :
136
136
runs-on : ${{ matrix.os }}
@@ -140,12 +140,12 @@ jobs:
140
140
permissions : {}
141
141
name : Try to install a wrong Cosign
142
142
steps :
143
- - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3
144
- - name : Install Cosign
145
- uses : ./
146
- with :
147
- cosign-release : ' honk'
148
- continue-on-error : true
143
+ - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
144
+ - name : Install Cosign
145
+ uses : ./
146
+ with :
147
+ cosign-release : ' honk'
148
+ continue-on-error : true
149
149
150
150
test_cosign_action_custom_dir :
151
151
runs-on : ${{ matrix.os }}
@@ -155,7 +155,7 @@ jobs:
155
155
permissions : {}
156
156
name : Install Custom Cosign and test presence in path
157
157
steps :
158
- - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3
158
+ - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
159
159
- name : Install Cosign
160
160
uses : ./
161
161
with :
@@ -179,7 +179,7 @@ jobs:
179
179
permissions : {}
180
180
name : Install Custom Cosign and test presence in path with custom root dir
181
181
steps :
182
- - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3
182
+ - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
183
183
- name : Install Cosign
184
184
uses : ./
185
185
with :
@@ -205,14 +205,14 @@ jobs:
205
205
go_version : ['1.18', '1.19']
206
206
name : Try to install cosign with go ${{ matrix.go_version }}
207
207
steps :
208
- - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3
209
- - uses : actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3 .0
210
- with :
211
- go-version : ${{ matrix.go_version }}
212
- check-latest : true
213
- - name : Install Cosign
214
- uses : ./
215
- with :
216
- cosign-release : ' main'
217
- - name : Check install!
218
- run : cosign version
208
+ - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
209
+ - uses : actions/setup-go@d0a58c1c4d2b25278816e339b944508c875f3613 # v3.4 .0
210
+ with :
211
+ go-version : ${{ matrix.go_version }}
212
+ check-latest : true
213
+ - name : Install Cosign
214
+ uses : ./
215
+ with :
216
+ cosign-release : ' main'
217
+ - name : Check install!
218
+ run : cosign version
0 commit comments