Skip to content

Commit 2b84b46

Browse files
authored
Add e2e test for slsa-verifier installer. (#116)
* Add tests for installer action. Signed-off-by: kpk47 <[email protected]>
1 parent a4555dd commit 2b84b46

3 files changed

+20
-4
lines changed
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
workflow_dispatch:
3+
4+
permissions: read-all
5+
6+
jobs:
7+
test-tags:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: slsa-framework/slsa-verifier/actions/[email protected]
11+
- uses: slsa-framework/slsa-verifier/actions/[email protected]
12+
test-hashes:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: slsa-framework/slsa-verifier/actions/installer@936dc46aca3ed973d542a09d2a9d890705ce5011
16+
- uses: slsa-framework/slsa-verifier/actions/installer@e6428d7da594455a4c2b7f24907fec421a5e0e95

.github/workflows/verifier-e2e.generic.workflow_dispatch.main.all.slsa3.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This produces a test for the generic workflows for the CLI e2e test.
22
# The output will be a file binary-linux-amd64-workflow_dispatch and
3-
# its associated provenance that should be moved to the
3+
# its associated provenance that should be moved to the
44
# cli/slsa-verifier/testdata/gha_generic/$BUILDER_TAG folder.
55

66
on:
@@ -24,7 +24,7 @@ jobs:
2424
binary-name: ${{ steps.create_name.outputs.binary-name }}
2525
runs-on: ubuntu-latest
2626
steps:
27-
- name: Creates the output name
27+
- name: Creates the output name
2828
id: create_name
2929
run: |
3030
if [ ${{ github.event_name == 'workflow_dispatch' }} ]; then

.github/workflows/verifier-e2e.go.workflow_dispatch.main.all.slsa3.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This produces a test for the generic workflows for the CLI e2e test.
22
# The output will be a file binary-linux-amd64-workflow_dispatch and
3-
# its associated provenance that should be moved to the
3+
# its associated provenance that should be moved to the
44
# cli/slsa-verifier/testdata/gha_generic/$BUILDER_TAG folder.
55

66
on:
@@ -24,7 +24,7 @@ jobs:
2424
binary-name: ${{ steps.create_name.outputs.binary-name }}
2525
runs-on: ubuntu-latest
2626
steps:
27-
- name: Creates the output name
27+
- name: Creates the output name
2828
id: create_name
2929
run: |
3030
if [ ${{ github.event_name == 'workflow_dispatch' }} ]; then

0 commit comments

Comments
 (0)