Skip to content

Commit df68284

Browse files
committed
gh-actions: cbom
1 parent 03ea038 commit df68284

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/xbom.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Cryptography BoM
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ n2 ]
7+
paths:
8+
- '**/*.go'
9+
pull_request:
10+
branches: [ n2 ]
11+
paths:
12+
- '**/*.go'
13+
14+
jobs:
15+
16+
# github.com/advanced-security/cbom-action
17+
build-matrix:
18+
name: 🚏 Repo analysis
19+
runs-on: ubuntu-latest
20+
outputs:
21+
repositories: ${{ steps.rm.outputs.repositories }}
22+
steps:
23+
- name: 🚀 Build analysis matrix
24+
uses: advanced-security/cbom-action/build-matrix@v1
25+
id: rm
26+
with:
27+
repositoryNameWithOwner: ${{ github.repository }}
28+
analyzeDependencies: true
29+
minimumLanguageBytes: 0
30+
31+
run-cbom-action:
32+
name: 📜 ${{ fromJson(matrix.repository).nameWithOwner }} - ${{ fromJson(matrix.repository).language }}
33+
runs-on: ubuntu-latest
34+
needs: build-matrix
35+
continue-on-error: true
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
repository: ${{ fromJSON(needs.build-matrix.outputs.repositories) }}
40+
41+
steps:
42+
- name: 💈 Run
43+
id: cbom
44+
uses: advanced-security/cbom-action/analyze@v1
45+
with:
46+
repositoryNameWithOwner: ${{ fromJson(matrix.repository).nameWithOwner }}
47+
language: ${{ fromJson(matrix.repository).language }}
48+
createCodeQLDatabaseIfRequired: true
49+
uploadToCodeScanning: false
50+
requestGitHubAnalysis: false
51+
queryTimeout: 500
52+
53+
- name: 🔅 Summarize
54+
if: success()
55+
uses: advanced-security/cbom-action/workflow-summary@v1

0 commit comments

Comments
 (0)