rename fork divergence file and add sbom generating

This commit is contained in:
Letro Bot
2026-04-30 13:01:04 +03:30
parent 83d948eca5
commit 430cb7eadc
2 changed files with 23 additions and 2 deletions

View File

@@ -333,8 +333,27 @@ jobs:
- name: Generate git diff from upstream
run: |
git diff "${{ steps.upstream.outputs.commit }}" HEAD -- \
':!LETRO_VERSION' ':!FORK_DIVERGANCE.md' ':!UPSTREAM_VERSION' \
':!LETRO_VERSION' ':!FORK_DIVERGENCE.md' ':!UPSTREAM_VERSION' \
> fork-changes.diff
- name: Install Trivy
run: |
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
- name: Generate repository SBOM with Trivy
run: |
trivy fs \
--format cyclonedx \
--output sbom-repo.json \
.
- name: Generate image SBOM with Trivy
env:
IMAGE_DIGEST: ${{ fromJSON(needs.build-image.outputs.metadata).regular.digest }}
run: |
trivy image \
--format cyclonedx \
--output sbom-image.json \
"${{ env.IMAGE }}@${IMAGE_DIGEST}"
- name: Prepare a release
uses: softprops/action-gh-release@v2.6.1
@@ -370,7 +389,9 @@ jobs:
files: |
fork-changes.diff
FORK_DIVERGANCE.md
FORK_DIVERGENCE.md
sbom-repo.json
sbom-image.json
unstable:
name: Update the unstable release