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:
2727 actions :
2828 patterns :
2929 - " *"
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:
6262 - name : test
6363 run : make test TEST_ARGS="-vv --showlocals"
6464
65+ # TODO: Refactor this or remove it entirely once there's
66+ # a suitable staging TSA instance.
6567 - name : test (timestamp-authority)
6668 if : ${{ matrix.conf.os == 'ubuntu-latest' }}
6769 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')
6972 wget https://github.com/sigstore/timestamp-authority/releases/download/${SIGSTORE_TIMESTAMP_VERSION}/timestamp-server-linux-amd64 -O /tmp/timestamp-server
7073 chmod +x /tmp/timestamp-server
74+
7175 # Run the TSA in background
7276 /tmp/timestamp-server serve --port 3000 --disable-ntp-monitoring &
7377 export TEST_SIGSTORE_TIMESTAMP_AUTHORITY_URL="http://localhost:3000/api/v1/timestamp"
78+
7479 # Ensure Timestamp Authority tests are not skipped by
7580 # having pytest show skipped tests and verifying ours are running
7681 make test TEST_ARGS="-m timestamp_authority -rs" | tee output
7782 ! 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 }}
7886
7987 - name : test (interactive)
8088 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