diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 903c35db0..ef171441b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -25,32 +25,6 @@ jobs: run: go mod download - name: Run unit and integration tests - run: go test -v -race -tags=integration ./cmd/release + run: go test -v ./pkg/cmd/release/verify-asset/... - name: Build run: go build -v ./cmd/gh - - integration-tests: - env: - GH_TOKEN: ${{ github.token }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - runs-on: ${{ matrix.os }} - - steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version-file: "go.mod" - - - name: Build executable - run: make - - - name: Run attestation command set integration tests - shell: bash - run: | - ./test/integration/attestation-cmd/run-all-tests.sh "${{ matrix.os }}" diff --git a/pkg/cmd/release/verify-asset/verify-asset.go b/pkg/cmd/release/verify-asset/verify-asset.go index f7e651c6b..e2b45f7f1 100644 --- a/pkg/cmd/release/verify-asset/verify-asset.go +++ b/pkg/cmd/release/verify-asset/verify-asset.go @@ -176,7 +176,7 @@ func verifyAssetRun(opts *attestation.AttestOptions) error { if len(filteredAttestations) == 0 { opts.Logger.Printf(opts.Logger.ColorScheme.Red("Release %s does not contain %s (%s)\n"), opts.TagName, opts.AssetFilePath, fileDigest.DigestWithAlg()) - return fmt.Errorf("no attestations found for %s in release %s", fileName, opts.TagName) + return fmt.Errorf("release %s does not contain %s (%s)", opts.TagName, opts.AssetFilePath, fileDigest.DigestWithAlg()) } opts.Logger.Printf("Loaded %s from GitHub API\n", text.Pluralize(len(filteredAttestations), "attestation"))