Commit 3470124
committed
fix: always inject OIDC_IDENTITY/OIDC_ISSUER env vars for verification tasks
The verify_artifact and verify_image functions unconditionally reference
OIDC_IDENTITY and OIDC_ISSUER, but these env vars were only injected when
rhtas.oidc.enabled was true. In SPIRE mode this caused an "unbound variable"
crash due to set -u. Move identity/issuer vars outside the OIDC conditional
since verification always needs them regardless of the signing method.1 parent 1c9528b commit 3470124
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
| |||
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | 167 | | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
0 commit comments