Skip to content

Commit 084f5e1

Browse files
committed
do not fail on grant error
1 parent c5812a4 commit 084f5e1

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

src/base/.devcontainer/.grant.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
allow:
22
- MIT*
3-
- Apache-2.0
4-
- BSD-2-Clause
3+
- Apache-*
4+
- BSD-*-Clause
55
- BSD-3-Clause
6-
- ISC
6+
- ISC*
77
- 0BSD
88
- Unlicense
9-
- CC0-1.0
10-
- BlueOak-1.0.0
9+
- CC0-*
10+
- BlueOak-*
1111
- BSD
12-
- MPL-2.0
13-
- CC-BY-4.0
14-
- Python-2.0
12+
- MPL-*
13+
- CC-BY-*
14+
- Python-*
15+
- Artistic-*
1516
ignore-packages:
1617
- "case"
18+
require-license: false

src/base/.devcontainer/Mk/check.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,14 @@ zizmor:
9797

9898
syft-generate-sbom:
9999
syft \
100+
--exclude './.github/**' \
100101
--output cyclonedx-json=.sbom/sbom.cdx.json \
101102
dir:./
102103

103104
syft-generate-sbom-dev-dependencies:
104105
SYFT_JAVASCRIPT_INCLUDE_DEV_DEPENDENCIES=true \
105106
syft \
107+
--exclude './.github/**' \
106108
--output cyclonedx-json=.sbom/sbom.dev.cdx.json \
107109
dir:./
108110

@@ -141,20 +143,24 @@ grype-scan-docker-image: guard-DOCKER_IMAGE
141143

142144
grant-scan: syft-generate-sbom
143145
grant check \
146+
--dry-run \
144147
.sbom/sbom.cdx.json
145148

146149
grant-scan-dev-dependencies: syft-generate-sbom-dev-dependencies
147150
grant check \
151+
--dry-run \
148152
.sbom/sbom.dev.cdx.json
149153

150154
grant-scan-json: syft-generate-sbom
151155
grant check .sbom/sbom.cdx.json \
152156
--output json \
153157
--quiet \
158+
--dry-run \
154159
--output-file ".sbom/grant_analysis.json"
155160

156161
grant-scan-json-dev-dependencies: syft-generate-sbom-dev-dependencies
157162
grant check .sbom/sbom.dev.cdx.json \
158163
--output json \
159164
--quiet \
165+
--dry-run \
160166
--output-file ".sbom/grant_analysis.dev.json"

0 commit comments

Comments
 (0)