Skip to content

Commit f3555c6

Browse files
committed
Test TUF DNS and TLS in actions
1 parent fdfaeca commit f3555c6

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/test.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@ jobs:
1010
test-linux-amd64:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Update CA certificates
14-
run: sudo apt-get update && sudo apt-get install --reinstall -y ca-certificates
13+
- name: Check TUF connectivity
14+
run: |
15+
echo google
16+
nslookup tuf-repo-cdn.sigstore.dev 8.8.8.8
17+
echo systemd-resolvd
18+
nslookup tuf-repo-cdn.sigstore.dev 127.0.0.53
19+
echo default
20+
nslookup tuf-repo-cdn.sigstore.dev 127.0.0.53
21+
echo TUF
22+
curl -v --head https://tuf-repo-cdn.sigstore.dev/14.root.json
1523
- name: Test suite setup
1624
uses: fluxcd/gha-workflows/.github/actions/setup-kubernetes@v0.4.0
1725
with:

internal/controller/ocirepository_controller_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,6 +2256,14 @@ func TestOCIRepository_reconcileSource_verifyOCISourceSignatureCosign(t *testing
22562256
}
22572257
}
22582258

2259+
func TestSigstoreTUFRepositoryTLSVerification(t *testing.T) {
2260+
resp, err := http.Get("https://tuf-repo-cdn.sigstore.dev/14.root.json")
2261+
if err != nil {
2262+
resp.Body.Close()
2263+
t.Fatalf("%v", err)
2264+
}
2265+
}
2266+
22592267
func TestOCIRepository_reconcileSource_verifyOCISourceSignature_keyless(t *testing.T) {
22602268
tests := []struct {
22612269
name string

0 commit comments

Comments
 (0)