From cd6ddcb1e4d30d5df055a95e7fb22f7dc2dc4cbb Mon Sep 17 00:00:00 2001 From: florentianayuwono Date: Thu, 26 Mar 2026 20:49:22 +0700 Subject: [PATCH 1/4] test charmedhpc runner connection --- .github/workflows/test_charmedhpc.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/test_charmedhpc.yaml diff --git a/.github/workflows/test_charmedhpc.yaml b/.github/workflows/test_charmedhpc.yaml new file mode 100644 index 000000000..bebeac0f4 --- /dev/null +++ b/.github/workflows/test_charmedhpc.yaml @@ -0,0 +1,14 @@ +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: | + curl -I -v https://sbom-request.canonical.com \ No newline at end of file From c886cb1dee06c639af409681db77cf0c4c0b58cf Mon Sep 17 00:00:00 2001 From: florentianayuwono Date: Thu, 26 Mar 2026 20:55:48 +0700 Subject: [PATCH 2/4] use proxy --- .github/workflows/test_charmedhpc.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_charmedhpc.yaml b/.github/workflows/test_charmedhpc.yaml index bebeac0f4..706c74743 100644 --- a/.github/workflows/test_charmedhpc.yaml +++ b/.github/workflows/test_charmedhpc.yaml @@ -11,4 +11,11 @@ jobs: - name: Test SBOM Service Connectivity run: | - curl -I -v https://sbom-request.canonical.com \ No newline at end of file + for i in {1..5}; do + echo "Attempt $i..." + # Get the proxy address from the aproxy snap and use it for the curl request + curl -x http://$(sudo snap get aproxy proxy) \ + -Iv --max-time 10 \ + https://sbom-request.canonical.com + sleep 1 + done \ No newline at end of file From bf42829708efb1145d38bfe2536a4c4e60edc5fd Mon Sep 17 00:00:00 2001 From: florentianayuwono Date: Thu, 26 Mar 2026 20:58:26 +0700 Subject: [PATCH 3/4] fix syntax --- .github/workflows/test_charmedhpc.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test_charmedhpc.yaml b/.github/workflows/test_charmedhpc.yaml index 706c74743..5adecb11a 100644 --- a/.github/workflows/test_charmedhpc.yaml +++ b/.github/workflows/test_charmedhpc.yaml @@ -11,11 +11,11 @@ jobs: - 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 - curl -x http://$(sudo snap get aproxy proxy) \ - -Iv --max-time 10 \ - https://sbom-request.canonical.com - sleep 1 - done \ No newline at end of file + for i in {1..5}; do + echo "Attempt $i..." + # Get the proxy address from the aproxy snap and use it for the curl request + curl -x http://$(sudo snap get aproxy proxy) \ + -Iv --max-time 10 \ + https://sbom-request.canonical.com + sleep 1 + done \ No newline at end of file From 1abbdcc86303489632f1c244bd5375bd95029ccc Mon Sep 17 00:00:00 2001 From: florentianayuwono Date: Thu, 26 Mar 2026 20:59:46 +0700 Subject: [PATCH 4/4] fix tab --- .github/workflows/test_charmedhpc.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_charmedhpc.yaml b/.github/workflows/test_charmedhpc.yaml index 5adecb11a..161dd48be 100644 --- a/.github/workflows/test_charmedhpc.yaml +++ b/.github/workflows/test_charmedhpc.yaml @@ -1,5 +1,6 @@ name: test charmedhpc runner on: [push] + jobs: ssdlc-scan: name: Run SBOM Scan @@ -11,10 +12,11 @@ jobs: - name: Test SBOM Service Connectivity run: | - for i in {1..5}; do + for i in {1..5}; do echo "Attempt $i..." # Get the proxy address from the aproxy snap and use it for the curl request - curl -x http://$(sudo snap get aproxy proxy) \ + PROXY_URL=$(sudo snap get aproxy proxy) + curl -x "http://$PROXY_URL" \ -Iv --max-time 10 \ https://sbom-request.canonical.com sleep 1