Debug sbom upload
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user