Skip to content

Commit 71a7b20

Browse files
woodruffwjku
andauthored
ci: remove dependabot + gomod, always fetch latest (#1293)
* ci: remove dependabot + gomod, always fetch latest Instead of using Dependabot to test, this always fetches the latest TSA build. I'm not positive this is a great idea, however. Signed-off-by: William Woodruff <william@trailofbits.com> Co-authored-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent adc725b commit 71a7b20

File tree

4 files changed

+9
-24
lines changed

4 files changed

+9
-24
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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-
- "*"

.github/go.mod

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/go.sum

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)