You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,6 @@ Flags:
68
68
```bash
69
69
--branch-scan # Fetch SBOMs for non-default branches
70
70
--branch-limit <n># Max number of non-default branches per repo (default 10)
71
-
--dependency-review # Fetch dependency review diffs (enabled by default)
72
71
--diff-base <branch># Override base branch for diffs (default: repository default)
73
72
```
74
73
@@ -86,7 +85,7 @@ If a branch SBOM or diff retrieval fails, the error is recorded but does not sto
86
85
87
86
#### Handling Missing Dependency Review Snapshots
88
87
89
-
If the Dependency Review API returns a 404 for a branch diff (commonly due to a missing dependency snapshot on either the base or head commit), the toolkit can optionally attempt to generate and submit a snapshot using Component Detection and Dependency Submission. This is vendored-in and forked from the public [Component Detection Dependency Submission Action](https://github.com/your-org/component-detection-dependency-submission-action).
88
+
If the Dependency Review API returns a 404 for a branch diff (commonly due to a missing dependency snapshot on either the base or head commit), the toolkit can optionally attempt to generate and submit a snapshot using Component Detection and Dependency Submission. This is vendored-in and forked from the public [Component Detection Dependency Submission Action](https://github.com/advanced-security/component-detection-dependency-submission-action).
* submitSnapshot submits a snapshot to the Dependency Submission API - vendored in from @github/dependency-submission-toolkit, to make it work at the CLI, vs in Actions.
184
193
*
185
-
* @param {Snapshot} snapshot
186
-
* @param {Repo} repo
194
+
* @param {Octokit} octokit - The Octokit instance for GitHub API requests
195
+
* @param {Snapshot} snapshot - The dependency snapshot to submit
196
+
* @param {Repo} repo - The repository owner and name
197
+
* @returns {Promise<boolean>} true if submission was successful, false otherwise
187
198
*/
188
199
exportasyncfunctionsubmitSnapshot(
189
200
octokit: Octokit,
190
201
snapshot: Snapshot,
191
202
repo: {owner: string;repo: string}
192
-
){
203
+
): Promise<boolean>{
193
204
console.debug('Submitting snapshot...')
194
205
console.debug(snapshot.prettyJSON())
195
206
@@ -198,7 +209,7 @@ export async function submitSnapshot(
0 commit comments