mirror of
https://github.com/dangeroustech/ZeroTierBridge.git
synced 2025-12-06 00:56:58 +00:00
Merge pull request #19 from dangeroustech/biodrone/issue11
Integrate Grype for Scanning
This commit is contained in:
33
.github/workflows/docker-build.yml
vendored
33
.github/workflows/docker-build.yml
vendored
@@ -35,6 +35,28 @@ jobs:
|
||||
push: true
|
||||
tags: registry.dangerous.tech/dangeroustech/zerotierbridge:latest
|
||||
|
||||
- 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 }}
|
||||
format: spdx-json
|
||||
output-file: ./sbom.spdx.json
|
||||
|
||||
- name: Scan SBOM
|
||||
uses: anchore/scan-action@v3
|
||||
id: scan
|
||||
with:
|
||||
sbom: sbom.spdx.json
|
||||
fail-build: false
|
||||
|
||||
- name: upload Anchore scan SARIF report
|
||||
uses: github/codeql-action/upload-sarif@v2
|
||||
with:
|
||||
sarif_file: ${{ steps.scan.outputs.sarif }}
|
||||
|
||||
- name: Changelog
|
||||
uses: TriPSs/conventional-changelog-action@v3
|
||||
id: changelog
|
||||
@@ -48,17 +70,6 @@ jobs:
|
||||
release-count: 0 # preserve all versions in changelog
|
||||
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
|
||||
output-file: ./sbom.spdx.json
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
id: release
|
||||
|
||||
Reference in New Issue
Block a user