-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EdgeBit] Create an SBOM for Vulnerability Scanning
- Loading branch information
EdgeBit
committed
Nov 7, 2023
1 parent
f00261e
commit d46b61d
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
output: syft | ||
|
||
check-for-app-update: false | ||
|
||
catalogers: | ||
- binary | ||
- cocoapods | ||
- conan | ||
- dartlang-lock | ||
- dotnet-deps | ||
- elixir-mix-lock | ||
- erlang-rebar-lock | ||
- go-mod-file | ||
- go-module-binary | ||
- graalvm-native-image | ||
- haskell | ||
- java | ||
- java-gradle-lockfile | ||
- java-pom | ||
- javascript-lock | ||
- php-composer-lock | ||
- python-index | ||
- python-package | ||
- ruby-gemfile | ||
- rust-cargo-lock | ||
- sbom | ||
- swift-package-manager |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Generate an SBOM from source code | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
generate-sbom: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Download Syft | ||
id: syft | ||
uses: anchore/sbom-action/download-syft@v0.14.2 | ||
|
||
- name: Generate SBOM from source code | ||
run: "${{ steps.syft.outputs.cmd }} --config .github/edgebit/source-syft.yaml --file /tmp/sbom.syft.json ." | ||
|
||
- name: Upload SBOM to EdgeBit | ||
uses: edgebitio/edgebit-build@v1 | ||
with: | ||
edgebit-url: "https://edgebit.edgebit.io" | ||
token: ${{ secrets.EDGEBIT_TOKEN }} | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
sbom-file: /tmp/sbom.syft.json | ||
component: "edgebitio-sbom-server" | ||
tags: ${{ github.ref == 'refs/heads/main' && 'latest' || '' }} |