Skip to content

Commit baa43a2

Browse files
authored
fix(docs): update cosign verification regex to support tag-triggered workflows (#205)
1 parent f63bad1 commit baa43a2

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/build-workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ jobs:
224224

225225
```bash
226226
cosign verify \
227-
--certificate-identity-regexp="^https://github.com/LerianStudio/.*/.github/workflows/.*@refs/heads/.*$" \
227+
--certificate-identity-regexp="^https://github\.com/LerianStudio/.+/.github/workflows/.+@refs/(heads|tags)/.+$" \
228228
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
229229
docker.io/lerianstudio/my-app@sha256:abc123...
230230
```

docs/go-release-workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ jobs:
204204

205205
```bash
206206
cosign verify \
207-
--certificate-identity-regexp="^https://github.com/LerianStudio/.*/.github/workflows/.*@refs/heads/.*$" \
207+
--certificate-identity-regexp="^https://github\.com/LerianStudio/.+/.github/workflows/.+@refs/(heads|tags)/.+$" \
208208
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
209209
ghcr.io/myorg/my-app@sha256:abc123...
210210
```

docs/typescript-build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ jobs:
231231
232232
```bash
233233
cosign verify \
234-
--certificate-identity-regexp="^https://github.com/LerianStudio/.*/.github/workflows/.*@refs/heads/.*$" \
234+
--certificate-identity-regexp="^https://github\.com/LerianStudio/.+/.github/workflows/.+@refs/(heads|tags)/.+$" \
235235
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
236236
ghcr.io/lerianstudio/my-app@sha256:abc123...
237237
```

src/security/cosign-sign/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
6565
```bash
6666
cosign verify \
67-
--certificate-identity-regexp="^https://github.com/LerianStudio/.*/.github/workflows/.*@refs/heads/.*$" \
67+
--certificate-identity-regexp="^https://github\.com/LerianStudio/.+/.github/workflows/.+@refs/(heads|tags)/.+$" \
6868
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
6969
docker.io/myorg/myapp@sha256:abc123...
7070
```

0 commit comments

Comments
 (0)