Skip to content

Commit 250625c

Browse files
use uv group sbom, bypass scan for testing
1 parent 23f2f15 commit 250625c

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/generate_sbom.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,24 @@ jobs:
2828
working-directory: ${{env.BUILD}}
2929
run: cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_STANDARD=${{env.CXX_STANDARD}} -DENABLE_TESTS=ON
3030

31-
- name: Install endorctl and Scan with Endor Labs
32-
uses: endorlabs/github-action@519df81de5f68536c84ae05ebb2986d0bb1d19fc # v1.1.8
31+
# - name: Install endorctl and Scan with Endor Labs
32+
# uses: endorlabs/github-action@519df81de5f68536c84ae05ebb2986d0bb1d19fc # v1.1.8
33+
# with:
34+
# additional_args: "--languages=c --exclude-path=\"build/CMakeFiles/**\""
35+
# log_level: info
36+
# log_verbose: false
37+
# namespace: mongodb.${{github.repository_owner}}
38+
# pr: false
39+
# scan_dependencies: true
40+
# tags: github_action
41+
# env:
42+
# ENDOR_SCAN_EMBEDDINGS: true
43+
44+
- name: Install endorctl
45+
uses: endorlabs/github-action/setup@519df81de5f68536c84ae05ebb2986d0bb1d19fc # v1.1.8
3346
with:
34-
additional_args: "--languages=c --exclude-path=\"build/CMakeFiles/**\""
35-
log_level: info
36-
log_verbose: false
3747
namespace: mongodb.${{github.repository_owner}}
38-
pr: false
39-
scan_dependencies: true
40-
tags: github_action
41-
env:
42-
ENDOR_SCAN_EMBEDDINGS: true
48+
enable_github_action_token: true
4349

4450
- name: Set up Python 3.10
4551
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
@@ -50,7 +56,7 @@ jobs:
5056
python-version: "3.10"
5157
activate-environment: true
5258
- name: Install dependencies
53-
run: uv sync --group make_release
59+
run: uv sync --group sbom
5460
- name: generate_sbom.py
5561
run: uv run etc/sbom/generate_sbom.py --enable-github-action-token --target=branch --sbom-metadata=etc/sbom/metadata.cdx.json --save-warnings=${{runner.temp}}/warnings.txt
5662

0 commit comments

Comments
 (0)