Debug sbom upload
Some checks failed
CI/CD Pipeline - Build, Test, and Deploy / 🏗️ Build & Push Image (push) Failing after 12s
CI/CD Pipeline - Build, Test, and Deploy / 🧹 Cleanup (push) Successful in 2s

This commit is contained in:
2025-07-03 09:08:19 -06:00
parent 4874ca099d
commit 1ef968b87b

View File

@ -124,10 +124,6 @@ jobs:
run: | run: |
# Install syft # Install syft
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
echo "${{ secrets.HARBOR_TOKEN }}"
echo "${{ env.REGISTRY }}"
echo "${{ secrets.HARBOR_USERNAME }}"
echo "${{ env.IMAGE_NAME }}"
# Login to registry - use the REGISTRY variable for the URL # Login to registry - use the REGISTRY variable for the URL
echo "${{ secrets.HARBOR_TOKEN }}" | docker login ${{ env.REGISTRY }} -u '${{ secrets.HARBOR_USERNAME }}' --password-stdin echo "${{ secrets.HARBOR_TOKEN }}" | docker login ${{ env.REGISTRY }} -u '${{ secrets.HARBOR_USERNAME }}' --password-stdin
@ -143,6 +139,14 @@ jobs:
echo "SBOM generated successfully" echo "SBOM generated successfully"
- name: Install ORAS CLI
run: |
ORAS_VERSION="1.1.0"
curl -LO https://github.com/oras-project/oras/releases/download/v${ORAS_VERSION}/oras_${ORAS_VERSION}_linux_amd64.tar.gz
tar -xzf oras_${ORAS_VERSION}_linux_amd64.tar.gz oras
chmod +x oras
mv oras /usr/local/bin/oras
- name: Upload SBOM to Harbor via ORAS - name: Upload SBOM to Harbor via ORAS
run: | run: |
curl -sSL https://install.oras.land/install.sh | sh -s -- -b /usr/local/bin curl -sSL https://install.oras.land/install.sh | sh -s -- -b /usr/local/bin