Print enclave CID on startup #112
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate an SBOM from source code | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
tags: | |
- '**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
generate-sbom: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Generate SBOM from source code | |
uses: anchore/sbom-action@v0 | |
with: | |
artifact-name: sbom.spdx.json | |
upload-artifact: true | |
config: .github/edgebit/source-syft.yaml | |
- name: Save metadata to an artifact | |
run: | | |
cat > /tmp/metadata.json <<EOF | |
{ | |
"pr-number": "${{ github.event.number }}", | |
"tags": "${{ github.ref == 'refs/heads/main' && 'latest' || '' }}" | |
} | |
EOF | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: metadata.json | |
path: /tmp/metadata.json |