forked from anchore/syft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
510 - SBOM attestation stdout (anchore#785)
add syft attest command to produce an attestation as application/vnd.in-toto+json to standard out using on disk PKI Signed-off-by: Christopher Phillips <[email protected]>
- Loading branch information
Showing
20 changed files
with
2,697 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -348,9 +348,16 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-go-${{ env.GO_VERSION }}- | ||
- name: (cache-miss) Bootstrap go dependencies | ||
if: steps.go-cache.outputs.cache-hit != 'true' | ||
run: make bootstrap-go | ||
- name: Restore tool cache | ||
id: tool-cache | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ github.workspace }}/.tmp | ||
key: ${{ runner.os }}-tool-${{ hashFiles('Makefile') }} | ||
|
||
- name: (cache-miss) Bootstrap all project dependencies | ||
if: steps.tool-cache.outputs.cache-hit != 'true' || steps.go-cache.outputs.cache-hit != 'true' | ||
run: make bootstrap | ||
|
||
- name: Build key for tar cache | ||
run: make cli-fingerprint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,8 @@ bin/ | |
# macOS Finder metadata | ||
.DS_STORE | ||
|
||
*.profile | ||
*.profile | ||
|
||
# attestation | ||
cosign.key | ||
cosign.pub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ TEMPDIR = ./.tmp | |
RESULTSDIR = test/results | ||
COVER_REPORT = $(RESULTSDIR)/unit-coverage-details.txt | ||
COVER_TOTAL = $(RESULTSDIR)/unit-coverage-summary.txt | ||
LINTCMD = $(TEMPDIR)/golangci-lint run --tests=false --timeout=2m --config .golangci.yaml | ||
LINTCMD = $(TEMPDIR)/golangci-lint run --tests=false --timeout=4m --config .golangci.yaml | ||
RELEASE_CMD=$(TEMPDIR)/goreleaser release --rm-dist | ||
SNAPSHOT_CMD=$(RELEASE_CMD) --skip-publish --snapshot | ||
VERSION=$(shell git describe --dirty --always --tags) | ||
|
@@ -111,6 +111,7 @@ bootstrap-tools: $(TEMPDIR) | |
curl -sSfL https://raw.githubusercontent.com/anchore/chronicle/main/install.sh | sh -s -- -b $(TEMPDIR)/ v0.3.0 | ||
.github/scripts/goreleaser-install.sh -d -b $(TEMPDIR)/ v1.4.1 | ||
GOBIN="$(shell realpath $(TEMPDIR))" go install github.com/neilpa/[email protected] | ||
GOBIN="$(shell realpath $(TEMPDIR))" go install github.com/sigstore/cosign/cmd/[email protected] | ||
|
||
.PHONY: bootstrap-go | ||
bootstrap-go: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.