Skip to content

Commit 23750ab

Browse files
authored
fix: Make pre-submits blocking (slsa-framework#549)
* update * update
1 parent 2be0db0 commit 23750ab

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

.github/workflows/pre-submit.e2e.generic.default.yml

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
name: verify generic provenance
2828
runs-on: ubuntu-latest
2929
needs: [build]
30+
if: ${{ always() }}
3031
steps:
3132
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
3233
- uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # tag=v3.0.0

.github/workflows/pre-submit.e2e.go.config-ldflags-main-dir.yml

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
name: verify go provenance
4747
runs-on: ubuntu-latest
4848
needs: [build]
49+
if: ${{ always() }}
4950
steps:
5051
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
5152
- uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # tag=v3.0.0

.github/workflows/pre-submit.units.yml

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
# other pre-submits.
1818
name: unit tests
1919
runs-on: ubuntu-latest
20+
if: ${{ always() }}
2021
steps:
2122
- name: Checkout
2223
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
@@ -59,7 +60,9 @@ jobs:
5960
go build -mod=vendor ./internal/builders/generic
6061
6162
check-verifier:
63+
name: verify slsa-verifier is latest
6264
runs-on: ubuntu-latest
65+
if: ${{ always() }}
6366
steps:
6467
- name: Checkout
6568
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.3.4

internal/builders/generic/attest.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func pathIsUnderCurrentDirectory(path string) error {
147147

148148
if !strings.HasPrefix(p, wd+"/") &&
149149
wd != p {
150-
return errors.Errorf(&errInvalidPath{}, "path: %q", path)
150+
return errors.Errorf(&errInvalidPath{}, "invalid path: %q", path)
151151
}
152152

153153
return nil

0 commit comments

Comments
 (0)