Skip to content

Commit

Permalink
remove private cosign test key
Browse files Browse the repository at this point in the history
  • Loading branch information
shibumi committed Sep 27, 2021
1 parent a265a62 commit 5ae173f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 16 deletions.
11 changes: 0 additions & 11 deletions .github/cosign.key

This file was deleted.

7 changes: 6 additions & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,16 @@ jobs:
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v1.2.1'
- name: write cosign.key to environment
run: 'echo "$COSIGN_KEY" > .github/cosign.key'
shell: bash
env:
COSIGN_KEY: ${{ secrets.COSIGN_KEY }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
version: 'v0.180.2'
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ dist

# VSCode configuration
.vscode

# ignore cosign private key
cosign.key
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ builds:
- "-extldflags=-znow"
- "-X main.tag={{.Version}}"
- "-X main.commit={{.FullCommit}}"
- "-X main.date={{.Date}}"
- "-X main.date={{.CommitDate}}"
env:
- "CGO_ENABLED=0"
- "GO111MODULE=on"
Expand Down
2 changes: 1 addition & 1 deletion cmd/in-toto/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var (
var versionCmd = &cobra.Command{
Use: "version",
Short: "Display the version of the in-toto CLI tool",
Long: `Display the commit ID, the date and the version tag of the in-toto CLI as embedded by the build system.`,
Long: `Display the commit ID, the build date and the version tag of the in-toto CLI as embedded by the build system.`,
RunE: version,
}

Expand Down
4 changes: 2 additions & 2 deletions cosign.pub
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE2aAPtd19aLTQNfMnspdWzs2e0ieD
NxbkxAfrlSrJ7t/CUdQVlzqRydZQ1HnRfGmB6xPW6U7BDFUexVYLMTMOBQ==
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAESv8K4ZaLK5ZQcjycNcuHCY2zYE65
vagRvLoqo/ugR/52+ZLcq3DW41pfyjK0XVNSCqpdIaA0qUkmkDcwgwKFUg==
-----END PUBLIC KEY-----

0 comments on commit 5ae173f

Please sign in to comment.