mirror of
https://github.com/dangeroustech/ZeroTierBridge.git
synced 2025-12-06 09:06:58 +00:00
ci: simplify sbom
This commit is contained in:
13
.github/workflows/docker-build.yml
vendored
13
.github/workflows/docker-build.yml
vendored
@@ -48,6 +48,17 @@ jobs:
|
|||||||
release-count: 0 # preserve all versions in changelog
|
release-count: 0 # preserve all versions in changelog
|
||||||
skip-on-empty: false # otherwise we don't publish fixes
|
skip-on-empty: false # otherwise we don't publish fixes
|
||||||
|
|
||||||
|
- name: Generate SBOM
|
||||||
|
uses: anchore/sbom-action@v0
|
||||||
|
id: sbom
|
||||||
|
if: ${{ steps.changelog.outputs.skipped == 'false' }}
|
||||||
|
with:
|
||||||
|
image: registry.dangerous.tech/dangeroustech/zerotierbridge:latest
|
||||||
|
registry-username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
registry-password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
format: spdx-json
|
||||||
|
artifact-name: sbom.spdx.json
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
id: release
|
id: release
|
||||||
@@ -58,3 +69,5 @@ jobs:
|
|||||||
tag_name: ${{ steps.changelog.outputs.tag }}
|
tag_name: ${{ steps.changelog.outputs.tag }}
|
||||||
name: ${{ steps.changelog.outputs.tag }}
|
name: ${{ steps.changelog.outputs.tag }}
|
||||||
body: ${{ steps.changelog.outputs.clean_changelog }}
|
body: ${{ steps.changelog.outputs.clean_changelog }}
|
||||||
|
files: |
|
||||||
|
sbom.spdx.json
|
||||||
|
|||||||
17
.github/workflows/sbom.yml
vendored
17
.github/workflows/sbom.yml
vendored
@@ -1,17 +0,0 @@
|
|||||||
name: Generate SBOM
|
|
||||||
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [created, published]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
GenerateSBOM:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Generate SBOM
|
|
||||||
uses: anchore/sbom-action@v0
|
|
||||||
id: sbom
|
|
||||||
with:
|
|
||||||
image: registry.dangerous.tech/dangeroustech/zerotierbridge:latest
|
|
||||||
registry-username: ${{ secrets.REGISTRY_USERNAME }}
|
|
||||||
registry-password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
||||||
Reference in New Issue
Block a user