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

Update semgrep requirement from ~=1.46.0 to ~=1.48.0 #117

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 7, 2023

Updates the requirements on semgrep to permit the latest version.

Release notes

Sourced from semgrep's releases.

Release v1.48.0

1.48.0 - 2023-11-06

Added

  • Matching: Matches with the same range but bindings in different locations will now no longer deduplicate.

    For instance, the pattern $FUNC(..., $A, ...) would produce only one match on the target file:

    foo(true, true)
    

    because you would have two matches to the range of the call, and both bindings of $A would be to true.

    Now, the deduplication logic sees that the bindings of $A are in different places, and thus should not be considered the same, and produce two matches. (pa-3230)

Fixed

  • Fixed out of bounds list access error in Cargo.lock parser (sc-1072)
  • Secrets: metadata overrides specified in validators were incorrectly applied on top of one another (on a per-rule basis), so that only the last was applied. Each update is now correctly applied independently to each finding based on the rule's validators. (scrt-231)
Changelog

Sourced from semgrep's changelog.

1.48.0 - 2023-11-06

Added

  • Matching: Matches with the same range but bindings in different locations will now no longer deduplicate.

    For instance, the pattern $FUNC(..., $A, ...) would produce only one match on the target file:

    foo(true, true)
    

    because you would have two matches to the range of the call, and both bindings of $A would be to true.

    Now, the deduplication logic sees that the bindings of $A are in different places, and thus should not be considered the same, and produce two matches. (pa-3230)

Fixed

  • Fixed out of bounds list access error in Cargo.lock parser (sc-1072)
  • Secrets: metadata overrides specified in validators were incorrectly applied on top of one another (on a per-rule basis), so that only the last was applied. Each update is now correctly applied independently to each finding based on the rule's validators. (scrt-231)

1.47.0 - 2023-11-01

Added

  • taint-mode: Added a Boolean exact option to sources and sanitizers to make matching stricter (default is false).

    If you specify a source such as foo(...), and Semgrep encounters foo(x), by default foo(x), foo, and x, will all be considered tainted. If you add exact: true to the source specification, then only foo(x) will be regarded as tainted, that is the "exact" match for the specification. The same applies to "exact" sanitizers. (gh-5897)

  • Added sg alias for semgrep binary which is functionally equivalent to

    alias sg="/opt/homebrew/bin/semgrep"

    with one fewer step. (gh-9117)

  • secrets: Added independent targeting from other semgrep products.

    This change allows Secrets to scan all tracked files. In particular, those ignored

... (truncated)

Commits

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)

Updates the requirements on [semgrep](https://github.com/returntocorp/semgrep) to permit the latest version.
- [Release notes](https://github.com/returntocorp/semgrep/releases)
- [Changelog](https://github.com/semgrep/semgrep/blob/develop/CHANGELOG.md)
- [Commits](semgrep/semgrep@v1.46.0...v1.48.0)

---
updated-dependencies:
- dependency-name: semgrep
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 7, 2023
@dependabot dependabot bot requested a review from andrecsilva as a code owner November 7, 2023 05:23
@dependabot dependabot bot added the python Pull requests that update Python code label Nov 7, 2023
Copy link

codecov bot commented Nov 7, 2023

Codecov Report

Merging #117 (f9ca47c) into main (0307600) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #117   +/-   ##
=======================================
  Coverage   95.96%   95.96%           
=======================================
  Files          64       64           
  Lines        2630     2630           
=======================================
  Hits         2524     2524           
  Misses        106      106           

@andrecsilva andrecsilva merged commit 7aaa51f into main Nov 8, 2023
11 checks passed
@andrecsilva andrecsilva deleted the dependabot/pip/semgrep-approx-eq-1.48.0 branch November 8, 2023 10:17
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 python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants