Skip to content

chore(deps): bump google/osv-scanner-action from 1.9.1 to 2.0.1 #24

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 8, 2025

Bumps google/osv-scanner-action from 1.9.1 to 2.0.1.

Release notes

Sourced from google/osv-scanner-action's releases.

v2.0.1

What's Changed

Full Changelog: google/osv-scanner-action@v2.0.0...v2.0.1

v2.0.0

What's Changed

Breaking changes

By default, osv-scanner-action no longer scans the HEAD git hash. This means if there are no other lockfiles found to scan, then osv-scanner-action will fail the workflow, as it is likely it's setup incorrectly.

To match the previous behavior, pass --include-git-root to scan-args, e.g.

  osv-scan:
    uses: "google/osv-scanner-action/.github/workflows/[email protected]"
    with:
      scan-args: |-
        --include-git-root
        --recursive
        ./

Full Changelog: google/osv-scanner-action@v1.9.2...v2.0.0

v1.9.2

What's Changed

Full Changelog: google/osv-scanner-action@v1.9.1...v1.9.2

Commits
  • 6fc7144 Merge pull request #69 from google/update-to-v2.0.1
  • ce2f529 Update unified workflow example to point to v2.0.1 reusable workflows
  • afa2aef Update reusable workflows to point to v2.0.1 actions
  • 19734b4 Update actions to use v2.0.1 osv-scanner image
  • 98b584e Merge pull request #63 from renovate-bot/renovate/workflows
  • 256cd6a chore(deps): update github/codeql-action action to v3.28.11
  • 90fad54 Merge pull request #64 from google/update-to-v2.0.0
  • f9d9b03 Include git root
  • 6e516af Update unified workflow example to point to v2.0.0 reusable workflows
  • 4299e5f Update reusable workflows to point to v2.0.0 actions
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [google/osv-scanner-action](https://github.com/google/osv-scanner-action) from 1.9.1 to 2.0.1.
- [Release notes](https://github.com/google/osv-scanner-action/releases)
- [Commits](google/osv-scanner-action@v1.9.1...v2.0.1)

---
updated-dependencies:
- dependency-name: google/osv-scanner-action
  dependency-version: 2.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Apr 8, 2025
@henvic henvic requested a review from Copilot April 27, 2025 18:11
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR bumps the version of google/osv-scanner-action used in the project's workflows from v1.9.1 to v2.0.1.

  • Update reusable workflow references to the newest version.
  • Ensure compatibility with breaking changes introduced in v2.0.1.

Comment on lines +35 to +38
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v2.0.1"
scan-pr:
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@v1.9.1"
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@v2.0.1"
Copy link
Preview

Copilot AI Apr 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The upgrade to v2.0.1 disables automatic scanning of the HEAD git hash. If your configuration depends on scanning the git root, make sure to update the scan args to include '--include-git-root'.

Copilot uses AI. Check for mistakes.

scan-pr:
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@v1.9.1"
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@v2.0.1"
Copy link
Preview

Copilot AI Apr 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bump to v2.0.1 may cause workflow failures due to the removal of default HEAD git scanning. Verify if adding '--include-git-root' in your scan args is necessary for pull request scanning.

Suggested change
uses: "google/osv-scanner-action/.github/workflows/[email protected]"
uses: "google/osv-scanner-action/.github/workflows/[email protected]"
with:
args: "--include-git-root"

Copilot uses AI. Check for mistakes.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source?

Copy link
Contributor Author

dependabot bot commented on behalf of github May 6, 2025

Superseded by #26.

@dependabot dependabot bot closed this May 6, 2025
@dependabot dependabot bot deleted the dependabot/github_actions/google/osv-scanner-action-2.0.1 branch May 6, 2025 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant