diff --git a/.github/workflows/test_charmedhpc.yaml b/.github/workflows/test_charmedhpc.yaml new file mode 100644 index 000000000..161dd48be --- /dev/null +++ b/.github/workflows/test_charmedhpc.yaml @@ -0,0 +1,23 @@ +name: test charmedhpc runner +on: [push] + +jobs: + ssdlc-scan: + name: Run SBOM Scan + runs-on: [self-hosted, linux, xlarge, amd64, self-hosted-linux-amd64-noble-xlarge] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Test SBOM Service Connectivity + run: | + for i in {1..5}; do + echo "Attempt $i..." + # Get the proxy address from the aproxy snap and use it for the curl request + PROXY_URL=$(sudo snap get aproxy proxy) + curl -x "http://$PROXY_URL" \ + -Iv --max-time 10 \ + https://sbom-request.canonical.com + sleep 1 + done \ No newline at end of file