Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix e2e workflow syntax #379

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ jobs:
echo "release sign test" > ${{ runner.temp }}/test-file-${{ github.run_id }}
- name: Run e2e tests
run: go run mage.go E2ETest
with:
path: ${{ runner.temp }}/test-file-${{ github.run_id }}
env:
TEST_FILE_PATH: ${{ runner.temp }}/test-file-${{ github.run_id }}
6 changes: 2 additions & 4 deletions test/e2e/sign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func TestSignFileSuccess(t *testing.T) {
signer := testSigner(t)

// propagated by the github actions workflow
testFilePath := os.Getenv("INPUT_PATH")
testFilePath := os.Getenv("TEST_FILE_PATH")
require.NotEmpty(t, testFilePath)
signedObject, err := signer.SignFile(testFilePath)
require.NoError(t, err)
Expand All @@ -129,7 +129,5 @@ func testSigner(t *testing.T) *sign.Signer {
opts.CertIdentityRegexp = "https://github.com/kubernetes-sigs/release-sdk/.github/workflows/e2e.yml@.*"
opts.CertOidcIssuer = "https://token.actions.githubusercontent.com"

signer := sign.New(opts)

return signer
return sign.New(opts)
}