File tree Expand file tree Collapse file tree 4 files changed +9
-24
lines changed Expand file tree Collapse file tree 4 files changed +9
-24
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,3 @@ updates:
27
27
actions :
28
28
patterns :
29
29
- " *"
30
-
31
- - package-ecosystem : gomod
32
- directory : " /.github"
33
- schedule :
34
- interval : daily
35
- open-pull-requests-limit : 1
36
- rebase-strategy : " disabled"
37
- groups :
38
- actions :
39
- patterns :
40
- - " *"
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -62,19 +62,27 @@ jobs:
62
62
- name : test
63
63
run : make test TEST_ARGS="-vv --showlocals"
64
64
65
+ # TODO: Refactor this or remove it entirely once there's
66
+ # a suitable staging TSA instance.
65
67
- name : test (timestamp-authority)
66
68
if : ${{ matrix.conf.os == 'ubuntu-latest' }}
67
69
run : |
68
- SIGSTORE_TIMESTAMP_VERSION=$(grep "github.com/sigstore/timestamp-authority" .github/go.mod | awk '{print $3}')
70
+ # Fetch the latest sigstore/timestamp-authority build
71
+ SIGSTORE_TIMESTAMP_VERSION=$(gh api /repos/sigstore/timestamp-authority/tags --jq '.[0].name')
69
72
wget https://github.com/sigstore/timestamp-authority/releases/download/${SIGSTORE_TIMESTAMP_VERSION}/timestamp-server-linux-amd64 -O /tmp/timestamp-server
70
73
chmod +x /tmp/timestamp-server
74
+
71
75
# Run the TSA in background
72
76
/tmp/timestamp-server serve --port 3000 --disable-ntp-monitoring &
73
77
export TEST_SIGSTORE_TIMESTAMP_AUTHORITY_URL="http://localhost:3000/api/v1/timestamp"
78
+
74
79
# Ensure Timestamp Authority tests are not skipped by
75
80
# having pytest show skipped tests and verifying ours are running
76
81
make test TEST_ARGS="-m timestamp_authority -rs" | tee output
77
82
! grep -q "skipping test that requires a Timestamp Authority" output || (echo "ERROR: Found skip message" && exit 1)
83
+ env :
84
+ # Needed for `gh api` above.
85
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
78
86
79
87
- name : test (interactive)
80
88
if : (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
You can’t perform that action at this time.
0 commit comments