-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using a separate branch to resolve the merge conflicts, but other than that this is a straightforward update of the v2 branch up to the latest main branch. --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Emmanuel Ferdman <[email protected]> Co-authored-by: Xueqin Cui <[email protected]> Co-authored-by: Michael Kedar <[email protected]> Co-authored-by: Gareth Jones <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Emmanuel Ferdman <[email protected]> Co-authored-by: Ignacio Vazquez <[email protected]>
- Loading branch information
1 parent
b15b566
commit c9a0635
Showing
21 changed files
with
284 additions
and
434 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
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
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 |
---|---|---|
|
@@ -55,7 +55,7 @@ permissions: | |
|
||
jobs: | ||
scan-pr: | ||
uses: "google/osv-scanner-action/.github/workflows/[email protected].0" | ||
uses: "google/osv-scanner-action/.github/workflows/[email protected].1" | ||
``` | ||
### View results | ||
|
@@ -98,7 +98,7 @@ permissions: | |
jobs: | ||
scan-scheduled: | ||
uses: "google/osv-scanner-action/.github/workflows/[email protected].0" | ||
uses: "google/osv-scanner-action/.github/workflows/[email protected].1" | ||
``` | ||
|
||
As written, the scanner will run on 12:30 pm UTC every Monday, and also on every push to the main branch. You can change the schedule by following the instructions [here](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule). | ||
|
@@ -133,7 +133,7 @@ permissions: | |
|
||
jobs: | ||
osv-scan: | ||
uses: "google/osv-scanner-action/.github/workflows/[email protected].0" | ||
uses: "google/osv-scanner-action/.github/workflows/[email protected].1" | ||
with: | ||
# Only scan the top level go.mod file without recursively scanning directories since | ||
# this is pipeline is about releasing the go module and binary | ||
|
@@ -163,7 +163,7 @@ Results may be viewed by clicking on the details of the failed release action fr | |
The GitHub Actions have the following optional inputs: | ||
- `scan-args`: This value is passed to `osv-scanner` CLI after being split by each line. See the [usage](./usage) page for the available options. The `--format` and `--output` flags are already set by the reusable workflow and should not be overridden here. | ||
- `scan-args`: This value is passed to `osv-scanner` CLI after being split by each line. See the [usage](./usage.md) page for the available options. The `--format` and `--output` flags are already set by the reusable workflow and should not be overridden here. | ||
Default: | ||
```bash | ||
--recursive # Recursively scan subdirectories | ||
|
@@ -172,7 +172,7 @@ The GitHub Actions have the following optional inputs: | |
``` | ||
- `results-file-name`: This is the name of the final SARIF file uploaded to Github. | ||
Default: `results.sarif` | ||
- `download-artifact`: Optional artifact to download for scanning. Can be used if you need to do some preprocessing to prepare the lockfiles for scanning. If the file names in the artifact are not standard lockfile names, make sure to add custom scan-args to specify the lockfile type and path (see [specify lockfiles](./usage#specify-lockfiles)). | ||
- `download-artifact`: Optional artifact to download for scanning. Can be used if you need to do some preprocessing to prepare the lockfiles for scanning. If the file names in the artifact are not standard lockfile names, make sure to add custom scan-args to specify the lockfile type and path (see [specify lockfiles](./usage.md#specify-lockfiles)). | ||
- `upload-sarif`: Whether to upload the results to Security > Code Scanning. Defaults to `true`. | ||
- `fail-on-vuln`: Whether to fail the workflow when a vulnerability is found. Defaults to `true`. | ||
|
||
|
@@ -186,7 +186,7 @@ Examples | |
```yml | ||
jobs: | ||
scan-pr: | ||
uses: "google/osv-scanner-action/.github/workflows/[email protected].0" | ||
uses: "google/osv-scanner-action/.github/workflows/[email protected].1" | ||
with: | ||
scan-args: |- | ||
--lockfile=./path/to/lockfile1 | ||
|
@@ -198,7 +198,7 @@ jobs: | |
```yml | ||
jobs: | ||
scan-pr: | ||
uses: "google/osv-scanner-action/.github/workflows/[email protected].0" | ||
uses: "google/osv-scanner-action/.github/workflows/[email protected].1" | ||
with: | ||
scan-args: |- | ||
--recursive | ||
|
@@ -225,7 +225,7 @@ jobs: | |
name: Vulnerability scanning | ||
# makes sure the extraction step is completed before running the scanner | ||
needs: extract-deps | ||
uses: "google/osv-scanner-action/.github/workflows/[email protected].0" | ||
uses: "google/osv-scanner-action/.github/workflows/[email protected].1" | ||
with: | ||
# Download the artifact uploaded in extract-deps step | ||
download-artifact: converted-OSV-Scanner-deps | ||
|
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
Oops, something went wrong.