diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 0af6121..cb1da1f 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -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 }} diff --git a/test/e2e/sign_test.go b/test/e2e/sign_test.go index c083a70..573647b 100644 --- a/test/e2e/sign_test.go +++ b/test/e2e/sign_test.go @@ -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) @@ -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) }