Skip to content

Commit

Permalink
fix: update changed signer flags in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailswift committed Aug 10, 2023
1 parent d9d2268 commit d7072c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-github-token.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
run: make build

- name: Test
run: ./bin/witness run -l debug -s test -a github --enable-archivist -o test.json --fulcio https://fulcio.sigstore.dev --fulcio-oidc-client-id https://oauth2.sigstore.dev/auth --fulcio-oidc-issuer sigstore --timestamp-servers https://freetsa.org/tsr -- echo "hello" > test.txt
run: ./bin/witness run -l debug -s test -a github --enable-archivist -o test.json --signer-fulcio-url https://fulcio.sigstore.dev --signer-fulcio-oidc-issuer https://oauth2.sigstore.dev/auth --signer-fulcio-oidc-client-id sigstore --timestamp-servers https://freetsa.org/tsr -- echo "hello" > test.txt
- name: log output
run: cat test.json
run: cat test.json
1 change: 1 addition & 0 deletions cmd/verify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ func TestRunVerifyKeyPair(t *testing.T) {
}

signers, err := loadSigners(context.Background(), so, map[string]struct{}{"file": {}})
require.NoError(t, err)

artifactPath := filepath.Join(workingDir, "test.txt")
step1Args := []string{
Expand Down
7 changes: 5 additions & 2 deletions test/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@
# limitations under the License.

run:
key: testkey.pem
signer-file-key-path: testkey.pem
step: build
trace: true
attestations:
- environment
- git
sign:
key: testkey.pem
signer-file-key-path: testkey.pem
outfile: policy-signed.json
verify:
attestations:
Expand Down

0 comments on commit d7072c0

Please sign in to comment.