Skip to content

Commit 5ae173f

Browse files
committed
remove private cosign test key
1 parent a265a62 commit 5ae173f

File tree

6 files changed

+13
-16
lines changed

6 files changed

+13
-16
lines changed

.github/cosign.key

-11
This file was deleted.

.github/workflows/goreleaser.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,16 @@ jobs:
4343
uses: sigstore/cosign-installer@main
4444
with:
4545
cosign-release: 'v1.2.1'
46+
- name: write cosign.key to environment
47+
run: 'echo "$COSIGN_KEY" > .github/cosign.key'
48+
shell: bash
49+
env:
50+
COSIGN_KEY: ${{ secrets.COSIGN_KEY }}
4651
- name: Run GoReleaser
4752
uses: goreleaser/goreleaser-action@v2
4853
with:
4954
distribution: goreleaser
50-
version: latest
55+
version: 'v0.180.2'
5156
args: release --rm-dist
5257
env:
5358
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ dist
66

77
# VSCode configuration
88
.vscode
9+
10+
# ignore cosign private key
11+
cosign.key

.goreleaser.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ builds:
66
- "-extldflags=-znow"
77
- "-X main.tag={{.Version}}"
88
- "-X main.commit={{.FullCommit}}"
9-
- "-X main.date={{.Date}}"
9+
- "-X main.date={{.CommitDate}}"
1010
env:
1111
- "CGO_ENABLED=0"
1212
- "GO111MODULE=on"

cmd/in-toto/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var (
1414
var versionCmd = &cobra.Command{
1515
Use: "version",
1616
Short: "Display the version of the in-toto CLI tool",
17-
Long: `Display the commit ID, the date and the version tag of the in-toto CLI as embedded by the build system.`,
17+
Long: `Display the commit ID, the build date and the version tag of the in-toto CLI as embedded by the build system.`,
1818
RunE: version,
1919
}
2020

cosign.pub

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-----BEGIN PUBLIC KEY-----
2-
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE2aAPtd19aLTQNfMnspdWzs2e0ieD
3-
NxbkxAfrlSrJ7t/CUdQVlzqRydZQ1HnRfGmB6xPW6U7BDFUexVYLMTMOBQ==
2+
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAESv8K4ZaLK5ZQcjycNcuHCY2zYE65
3+
vagRvLoqo/ugR/52+ZLcq3DW41pfyjK0XVNSCqpdIaA0qUkmkDcwgwKFUg==
44
-----END PUBLIC KEY-----

0 commit comments

Comments
 (0)