Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSV scalibr interface #1142

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
d9eccf2
Reflect Go 1.21.12 change more broadly (#1133)
andrewpollock Jul 22, 2024
bb4baf6
fix(deps): update osv-scanner minor (#1120)
renovate-bot Jul 23, 2024
0a95214
Exempt backlog label from stale treatment (#1135)
andrewpollock Jul 23, 2024
58d2d26
Cargo migrated
another-rex Jul 23, 2024
ccf4882
Fix bugs
another-rex Jul 23, 2024
a16e2dd
Remove old comments
another-rex Jul 23, 2024
cca3bb5
go mod migrated
another-rex Jul 23, 2024
07bf856
Fix formatting and output
another-rex Jul 23, 2024
2d46633
Fix go tests
another-rex Jul 23, 2024
fdc4fb7
Unify tests into helper function
another-rex Jul 23, 2024
9a81986
Add npm v1
another-rex Jul 24, 2024
1920a55
Fix npm tests
another-rex Jul 24, 2024
2e60dcc
Add original manifest to Maven ManifestPatch (#1134)
michaelkedar Jul 24, 2024
5f15b87
Add notes, move to old version of parse-npmp
another-rex Jul 24, 2024
ca0c473
Fix tests agin
another-rex Jul 24, 2024
72cfb71
Add npm v2 tests
another-rex Jul 24, 2024
abd101f
Better formatting
another-rex Jul 24, 2024
7500d91
Fix script new lines
another-rex Jul 24, 2024
a0bd287
Composer support
another-rex Jul 24, 2024
2fb4b38
Fix composer tests
another-rex Jul 24, 2024
e016187
Add nuget, fix test naming
another-rex Jul 24, 2024
5c3ad3c
Fix nuget test, fix helper tests
another-rex Jul 24, 2024
4349bdc
Delete all parsers, revert later
another-rex Jul 24, 2024
38ee443
Add Pnpm
another-rex Jul 24, 2024
207fb44
Fix PURLs
another-rex Jul 24, 2024
ba08f5d
Add Renv
another-rex Jul 24, 2024
0191e11
Add requirements.txt
another-rex Jul 24, 2024
7fbcfdf
Add yarn lock
another-rex Jul 24, 2024
bc0e8da
Add Maven dependency management to override client (#1140)
cuixq Jul 25, 2024
f3aabe4
chore(deps-dev): bump rexml from 3.3.1 to 3.3.2 in /docs in the bundl…
dependabot[bot] Jul 25, 2024
54dd092
Sort out file paths to have no starting slash
another-rex Jul 25, 2024
7a240ac
Add pipenv lock
another-rex Jul 25, 2024
edacbea
Add pdm and poetry lockfile parsing
another-rex Jul 25, 2024
115a3b5
Add pubspec lock
another-rex Jul 25, 2024
c979725
Add Mix lock
another-rex Jul 25, 2024
0de0e53
Add gradle lock
another-rex Jul 25, 2024
2099674
Add gradle verification metadata
another-rex Jul 25, 2024
57ad5b0
Add gemfile lock
another-rex Jul 25, 2024
6980abd
Add conan
another-rex Jul 25, 2024
a316113
Fix conan and add maven
another-rex Jul 25, 2024
7b8536d
Add go binary
another-rex Jul 26, 2024
b491f27
Move to separate directory to avoid builds failing
another-rex Jul 26, 2024
1401fe3
Remove unneccessary file
another-rex Jul 26, 2024
d7350e3
Restore files from main branch
another-rex Jul 26, 2024
a0a8967
Fix tests
another-rex Jul 26, 2024
85ddf24
Remove unnecessary commented out code
another-rex Jul 26, 2024
42514fc
feat: add "vertical" output format (#889)
G-Rath Jul 26, 2024
a7da346
Merge branch 'osv-scanner-v2' into osv-scalibr-interface
another-rex Jul 26, 2024
9b45a3e
Remove unused test fixtures
another-rex Jul 26, 2024
f5944e3
Remove unmigrated files
another-rex Jul 26, 2024
5eee5cd
Update apk-installed to return namespace
another-rex Jul 26, 2024
db49b8a
Apply lints
another-rex Jul 26, 2024
90ee2bf
Move FS and Requirements into plugin
another-rex Jul 29, 2024
3ed587f
chore(deps): update alpine:3.20 docker digest to 0a4eaa0 (#1143)
renovate-bot Jul 29, 2024
d43925d
Moved extractor and filesystem
another-rex Jul 29, 2024
b8562e1
chore(deps): update golang:1.22.5-alpine3.19 docker digest to 48aac60…
renovate-bot Jul 29, 2024
e93c5e3
fix(deps): update osv-scanner minor (#1146)
renovate-bot Jul 29, 2024
0e579d6
chore(deps): update workflows (#1145)
renovate-bot Jul 29, 2024
90c2f93
Helper move step one
another-rex Jul 29, 2024
5d84a9b
Moved test helper into separate package
another-rex Jul 29, 2024
d16c33d
Add script to help move individual files
another-rex Jul 29, 2024
378be3f
put metadata into othermetadata for easy find and replace later
another-rex Jul 29, 2024
e245bc9
Move composer
another-rex Jul 29, 2024
6b4c8b0
Remove cargo and composer
another-rex Jul 29, 2024
b80c8d1
Add Gemlock
another-rex Jul 29, 2024
995dfa3
Add gradle and gradle verification
another-rex Jul 29, 2024
665f594
Maven
another-rex Jul 29, 2024
ac6309c
Remove java related parsers
another-rex Jul 29, 2024
10491e6
Add mix
another-rex Jul 29, 2024
b85260c
Add flutter, renv
another-rex Jul 29, 2024
0ff396c
Remove ruby, flutter, renv, mix
another-rex Jul 29, 2024
3f2813b
Add PDM
another-rex Jul 29, 2024
c377dde
Add requirementstxt
another-rex Jul 29, 2024
96ff7cd
Fix spacing
another-rex Jul 29, 2024
aad77eb
Add pipenv
another-rex Jul 29, 2024
c2a422a
Poetry
another-rex Jul 29, 2024
bd9df0b
Remove python parsers
another-rex Jul 29, 2024
30436a8
Add golang
another-rex Jul 29, 2024
e6b77e0
REmove golang from top level
another-rex Jul 29, 2024
e0f8777
Improve Maven manifest updater (#1147)
cuixq Jul 30, 2024
0aab575
Increase frequency of staleness runs (#1148)
andrewpollock Jul 30, 2024
6a05a02
chore(deps): lock file maintenance (#1130)
renovate-bot Jul 30, 2024
a0b8899
Move conan and javascript
another-rex Jul 31, 2024
1d5ef99
Remove conan and javascript from top level
another-rex Jul 31, 2024
6521a69
Move dotnet/nuget and delete it from top level
another-rex Jul 31, 2024
d459092
Move alpine apk installed
another-rex Jul 31, 2024
7668bd5
fix(osv-github-action): If all vulnerabilities are not called, don't …
another-rex Jul 31, 2024
40b3fc0
fix(workflow): update prerelease-check.yml to the latest OSV-Scanner …
hogo6002 Jul 31, 2024
2b3ea49
fix(workflow): add read permission to `osv-scanner-reusable.yml` (#1157)
hogo6002 Aug 1, 2024
fc67a78
Handle Maven parent relative path (#1149)
cuixq Aug 2, 2024
e117d3b
Move fs into its own package
another-rex Aug 2, 2024
0eed440
Do not attempt to remediate vulnerabilities in Maven artifacts that h…
michaelkedar Aug 2, 2024
1f17ba2
Refactoring Maven manifest reading (#1159)
cuixq Aug 5, 2024
8907a11
Fix snapshots (#1164)
another-rex Aug 5, 2024
8aa4d7b
Label closed stale issues/PRs (#1165)
andrewpollock Aug 6, 2024
f8eacda
feat(guided remediation): add non-interactive Maven remediation by ov…
michaelkedar Aug 6, 2024
4c71abb
chore(deps-dev): bump rexml from 3.3.2 to 3.3.3 in /docs in the bundl…
dependabot[bot] Aug 7, 2024
830002d
chore: update dependency `github.com/docker/docker` (#1166)
cuixq Aug 7, 2024
8617d67
Add changelog for v1.8.3 (#1150)
hogo6002 Aug 7, 2024
8d6595f
chore(deps): update workflows (#1161)
renovate-bot Aug 7, 2024
e785685
fix(deps): update osv-scanner minor (#1162)
renovate-bot Aug 7, 2024
4fbbe89
chore(deps): update dependency wdm to "~> 0.2.0" (#1163)
renovate-bot Aug 7, 2024
817e50c
Update go policy and use stable go version for builds (#1156)
another-rex Aug 7, 2024
ae2bd10
Package tracing PoC (#1049)
another-rex Aug 8, 2024
8982ab1
docs: add conventional commits requirement (#1172)
hogo6002 Aug 9, 2024
b496c2f
fix(workflow): Add explicit permissions (#1171)
andrewpollock Aug 9, 2024
ce917a0
fix: only trim XML elements with no inner elements (#1168)
cuixq Aug 9, 2024
fe59653
fix(deps): update osv-scanner minor (#1174)
renovate-bot Aug 12, 2024
3bbcdf0
chore(deps): update workflows (#1173)
renovate-bot Aug 12, 2024
20bc07b
fix(workflow): correct permission name (#1175)
andrewpollock Aug 12, 2024
8fea3eb
ci(workflow): address address github.com/rhysd/actionlint findings (#…
andrewpollock Aug 13, 2024
0ecee7c
fix(guided remediation): error on `--data-source=native` for Maven (#…
michaelkedar Aug 14, 2024
aedd49a
chore: use the latest version of `golangci-lint` (#1185)
cuixq Aug 19, 2024
62a848e
feat: write Maven updates to parent pom.xml if possible (#1182)
cuixq Aug 19, 2024
9f879f2
chore: add new vulnerability aliases to test snapshots (#1192)
michaelkedar Aug 21, 2024
2bc1b28
chore: add PR title check to follow Git commit convention (#1178)
hogo6002 Aug 21, 2024
61979fe
feat(guided remediation): add `--upgrade-config` flag (#1191)
michaelkedar Aug 21, 2024
dd4eef1
fix: unescape tabs before writing to pom.xml (#1190)
cuixq Aug 21, 2024
8bbcb62
docs: link to the Scorecard Report (#1197)
andrewpollock Aug 22, 2024
35b36a3
refactor: move Maven utility to a separate package (#1193)
cuixq Aug 22, 2024
4a318af
chore(release): release v1.8.4 (#1200)
andrewpollock Aug 22, 2024
f142248
chore(deps): update golang docker tag to v1.23.0 (#1188)
renovate-bot Aug 22, 2024
255acef
chore(deps): update dependency github-pages to v232 (#1189)
renovate-bot Aug 22, 2024
1899b38
fix: correct for breaking change in glamour v0.8.0 (#1201)
andrewpollock Aug 23, 2024
636b4ac
fix(deps): update osv-scanner minor (#1187)
renovate-bot Aug 23, 2024
dcf71dd
chore(deps): update workflows (#1186)
renovate-bot Aug 23, 2024
0d6255f
chore: add `osv-scanner.toml` files to make Scorecard ignore vulnerab…
michaelkedar Aug 27, 2024
855afa0
chore: add missed test ignore vuln (#1209)
michaelkedar Aug 27, 2024
ecd7cc8
fix: stop finding more parent pom if the path is empty (#1194)
cuixq Aug 27, 2024
edaf998
feat: support fetching snapshot versions from a Maven registry (#1160)
cuixq Aug 27, 2024
2735f9d
perf: ignored packages should be filtered out before scanning (#1206)
giovanni-bozzano Aug 28, 2024
66ec99b
feat(guided remediation): Add `FIXED-VULN-IDS` to non-interactive out…
michaelkedar Aug 29, 2024
d7a0cf9
chore: axe `.go-version` file (#1212)
G-Rath Aug 29, 2024
cd6e180
Rename Requirements to Capabilities
another-rex Aug 30, 2024
fdccd92
Change ScanRoot to Root
another-rex Aug 30, 2024
7fdf3fc
chore: update test snapshots (#1218)
cuixq Sep 2, 2024
2b3e0fd
fix(internal): encode XML tokens without escaping (#1216)
cuixq Sep 2, 2024
06afe41
temp
another-rex Sep 3, 2024
5b4d517
fix(deps): update module github.com/charmbracelet/bubbletea to v1 (#1…
renovate-bot Sep 3, 2024
59f1578
Fancy new script
another-rex Sep 3, 2024
4a4090a
Step 1-3
another-rex Sep 3, 2024
7181b8a
Remove ScanInputMock for most inputs
another-rex Sep 3, 2024
f28f6a1
Fix scan input
another-rex Sep 3, 2024
9a93484
fix(guided remediation): Add special handling for specific Maven pack…
michaelkedar Sep 3, 2024
3a29d92
Merge branch 'main' into osv-scalibr-interface
another-rex Sep 4, 2024
a4e1386
feat(internal): add Maven native dependency client (#1207)
cuixq Sep 4, 2024
9dc3afa
chore: update test snapshots (#1222)
cuixq Sep 4, 2024
313233e
Simplify
another-rex Sep 5, 2024
0bcec56
refactor: use forked xml package for writing (#1223)
cuixq Sep 5, 2024
61669db
fix: govulncheck calls on C code (#1228)
another-rex Sep 6, 2024
1c086df
chore: update test snapshots (#1232)
cuixq Sep 9, 2024
0cd2051
feat: support composite-based package overrides (#1214)
G-Rath Sep 9, 2024
07619c0
chore: update Go to version 1.22.7 (#1233)
cuixq Sep 10, 2024
b402733
feat(internal): marshal self-closing tags in XML (#1225)
cuixq Sep 10, 2024
981b0b5
fix: make Alpine ecosystem fallback to latest release version (#1236)
michaelkedar Sep 10, 2024
6f61445
chore(release): changelog for v1.8.5 (#1237)
cuixq Sep 11, 2024
1d99551
chore(deps): lock file maintenance (#1195)
renovate-bot Sep 11, 2024
5402211
fix(deps): update osv-scanner minor (#1204)
renovate-bot Sep 11, 2024
b9b1b98
chore(deps): update workflows (#1205)
renovate-bot Sep 11, 2024
c2124e5
chore(deps): update golang docker tag to v1.23.1 (#1231)
renovate-bot Sep 11, 2024
f8953ff
chore(deps): update alpine:3.20 docker digest to beefdbd (#1230)
renovate-bot Sep 11, 2024
308a7bf
feat(guided remediation): remediate unresolved dependency management …
michaelkedar Sep 13, 2024
19e0abe
feat: allow explicitly ignoring the license of a package in config (#…
G-Rath Sep 13, 2024
0401f79
fix(deps): update osv-scanner minor (#1246)
renovate-bot Sep 16, 2024
eccb9a2
chore(deps): update workflows (#1247)
renovate-bot Sep 16, 2024
3dceabd
fix: announce when a config file is invalid and exit with a non-zero …
G-Rath Sep 16, 2024
84f1a96
feat: Copy over dark docs theming from osv.dev (#1245)
another-rex Sep 16, 2024
ac07a7d
Step 1
another-rex Sep 16, 2024
c20187d
step 2
another-rex Sep 16, 2024
5e5ebaf
Step 3
another-rex Sep 16, 2024
eae71b8
Step 4
another-rex Sep 16, 2024
e70b53a
Step 5
another-rex Sep 16, 2024
1412374
Merge branch 'main' into osv-scalibr-interface
another-rex Sep 16, 2024
2a433bd
Run documentation script over some extractors
another-rex Sep 19, 2024
dfed11c
Add comments and private public structs for Java.
another-rex Sep 19, 2024
9da956c
Remove python as it has already been migrated (temporary)
another-rex Sep 19, 2024
7d73673
Composer and Cargo documentation
another-rex Sep 19, 2024
4040f08
Remove alpine temporarily
another-rex Sep 19, 2024
b586be8
Add documentation to all entries
another-rex Sep 19, 2024
eacb5f5
Revert "Remove alpine temporarily"
another-rex Sep 19, 2024
8b0043f
Revert "Remove python as it has already been migrated (temporary)"
another-rex Sep 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 3 additions & 5 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ on:
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
merge_group:
branches: [main]

concurrency:
# Pushing new changes to a branch will cancel any in-progress CI runs
Expand Down Expand Up @@ -68,7 +66,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: .go-version
go-version: stable
check-latest: true
- name: Run lint action
uses: ./.github/workflows/lint-action
Expand All @@ -82,7 +80,7 @@ jobs:
with:
persist-credentials: false
- run: scripts/build_test_images.sh
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: image-fixtures-${{ github.run_number }}-${{ github.run_attempt }}
path: internal/image/fixtures/*.tar
Expand Down Expand Up @@ -110,7 +108,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: .go-version
go-version: stable
check-latest: true
- name: Run test action
uses: ./.github/workflows/test-action
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ on:
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
merge_group:
branches: [main]

# Restrict jobs in this workflow to have no permissions by default; permissions
# should be granted per job as needed using a dedicated `permissions` block
Expand Down Expand Up @@ -50,7 +48,7 @@ jobs:
go-version-file: go.mod
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@2d790406f505036ef40ecba973cc774a50395aac # v3.25.13
uses: github/codeql-action/init@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -61,7 +59,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@2d790406f505036ef40ecba973cc774a50395aac # v3.25.13
uses: github/codeql-action/autobuild@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -75,4 +73,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@2d790406f505036ef40ecba973cc774a50395aac # v3.25.13
uses: github/codeql-action/analyze@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
9 changes: 4 additions & 5 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ jobs:
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
ref: ${{ inputs.commit }}
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: .go-version
go-version: stable
check-latest: true
- uses: docker/setup-qemu-action@5927c834f5b4fdf503fca6f4c7eccda82949e1ee # v3
- uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
- uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3
- name: ghcr-login
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
using: composite
steps:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.59.1
version: v1.60.1
8 changes: 4 additions & 4 deletions .github/workflows/osv-scanner-reusable-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,28 +86,28 @@ jobs:
# format to the repository Actions tab.
- name: "Upload artifact"
if: "!cancelled()"
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: SARIF file
path: ${{ inputs.results-file-name }}
retention-days: 5
- name: "Upload old scan json results"
if: "!cancelled()"
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: old-json-results
path: old-results.json
retention-days: 5
- name: "Upload new scan json results"
if: "!cancelled()"
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: new-json-results
path: new-results.json
retention-days: 5
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
if: ${{ !cancelled() && inputs.upload-sarif == true }}
uses: github/codeql-action/upload-sarif@2d790406f505036ef40ecba973cc774a50395aac # v3.25.13
uses: github/codeql-action/upload-sarif@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
with:
sarif_file: ${{ inputs.results-file-name }}
4 changes: 2 additions & 2 deletions .github/workflows/osv-scanner-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ jobs:
# format to the repository Actions tab.
- name: "Upload artifact"
if: "!cancelled()"
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: SARIF file
path: ${{ inputs.results-file-name }}
retention-days: 5
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
if: "${{ !cancelled() && inputs.upload-sarif == true }}"
uses: github/codeql-action/upload-sarif@2d790406f505036ef40ecba973cc774a50395aac # v3.25.13
uses: github/codeql-action/upload-sarif@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
with:
sarif_file: ${{ inputs.results-file-name }}
2 changes: 0 additions & 2 deletions .github/workflows/osv-scanner-unified-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ name: OSV-Scanner Scheduled Scan
on:
pull_request:
branches: ["main"]
merge_group:
branches: ["main"]
schedule:
- cron: "12 12 * * 1"
push:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: OSV PR format check

on:
# `pull_request_target` is only required when editing PRs from forks.
pull_request:
types:
- opened
- edited
- reopened

permissions:
pull-requests: read

jobs:
title-check:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 5 additions & 4 deletions .github/workflows/prerelease-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
permissions:
contents: read # to fetch code (actions/checkout)
security-events: write # for uploading SARIF files
uses: ./.github/workflows/osv-scanner-reusable.yml
actions: read
uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@main
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
Expand Down Expand Up @@ -55,7 +56,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: .go-version
go-version: stable
check-latest: true
- name: Run lint action
uses: ./.github/workflows/lint-action
Expand All @@ -69,7 +70,7 @@ jobs:
with:
persist-credentials: false
- run: scripts/build_test_images.sh
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: image-fixtures-${{ github.run_number }}-${{ github.run_attempt }}
path: internal/image/fixtures/*.tar
Expand Down Expand Up @@ -98,7 +99,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: .go-version
go-version: stable
check-latest: true
- name: Run test action
uses: ./.github/workflows/test-action
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -60,14 +60,14 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@2d790406f505036ef40ecba973cc774a50395aac # v3.25.13
uses: github/codeql-action/upload-sarif@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
with:
sarif_file: results.sarif
24 changes: 12 additions & 12 deletions .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.10"
- run: dpkg --version
- run: python3 scripts/generators/generate-debian-versions.py
- run: git status
- run: stat debian-db.zip
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: generated-debian-versions
path: internal/semantic/fixtures/debian-versions-generated.txt
Expand All @@ -73,7 +73,7 @@ jobs:
extensions: zip
- run: php scripts/generators/generate-packagist-versions.php
- run: git status
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: generated-packagist-versions
path: internal/semantic/fixtures/packagist-versions-generated.txt
Expand All @@ -86,14 +86,14 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.10"
- name: setup dependencies
run: pip install packaging==21.3
- run: python3 scripts/generators/generate-pypi-versions.py
- run: git status
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: generated-pypi-versions
path: internal/semantic/fixtures/pypi-versions-generated.txt
Expand All @@ -106,14 +106,14 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- uses: ruby/setup-ruby@161cd54b698f1fb3ea539faab2e036d409550e3c # v1.187.0
- uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # v1.191.0
with:
ruby-version: "3.1"
- name: setup dependencies
run: gem install rubyzip
- run: ruby scripts/generators/generate-rubygems-versions.rb
- run: git status
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: generated-rubygems-versions
path: internal/semantic/fixtures/rubygems-versions-generated.txt
Expand All @@ -126,7 +126,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
- uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
with:
java-version: 17
distribution: oracle
Expand All @@ -139,7 +139,7 @@ jobs:
-o scripts/generators/lib/maven-artifact-3.8.5.jar
- run: java -cp 'scripts/generators/lib/*' scripts/generators/GenerateMavenVersions.java
- run: git status
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: generated-maven-versions
path: internal/semantic/fixtures/maven-versions-generated.txt
Expand All @@ -152,12 +152,12 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- uses: r-lib/actions/setup-r@929c772977a3a13c8733b363bf5a2f685c25dd91 # v2.9.0
- uses: r-lib/actions/setup-r@e6be4b3706e0f39bc7a4cf4496a5f2c4cb840040 # v2.10.1
with:
r-version: "3.5.3"
- run: Rscript scripts/generators/generate-cran-versions.R
- run: git status
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: generated-cran-versions
path: internal/semantic/fixtures/cran-versions-generated.txt
Expand All @@ -180,7 +180,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: .go-version
go-version: stable
cache: true

- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
Expand Down
Loading
Loading