ci: move sbom into it's own file

This commit is contained in:
2023-09-22 20:07:21 +00:00
parent ffb7b6f1db
commit c47edea183
2 changed files with 17 additions and 9 deletions

View File

@@ -58,12 +58,3 @@ jobs:
tag_name: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
- name: Syft 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 }}

17
.github/workflows/sbom.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Generate SBOM
on:
release:
types: [created]
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 }}