Skip to main content

August 2022

Semgrep App

Additions

  • Azure Pipelines CI configuration is now available when adding a new repository to Semgrep App for scanning. Users can select Azure Pipelines from within the App, and Semgrep generates a code snippet that users can copy and commit to their configuration file to set up their CI job.
  • Users can now delete projects in bulk (also known as batch delete) from Semgrep App's interface. To do this, sign into Semgrep App > Projects, and click on Edit Projects.
  • Users can now see usage limits in Semgrep App > Settings.

Semgrep CLI

These release notes include upgrades for versions ranging between 0.108.0 and 0.111.0.

Additions

  • Semgrep now provides experimental support for the Swift language. See all languages that Semgrep supports in Supported languages.
  • Add configuration options for using the tree-sitter library installed anywhere on the system.
  • Metrics now include language-aggregated parse rates (files, bytes). The purpose of this is to continue with parsing improvements. See Semgrep privacy policy for more details.
  • Semgrep CI now accepts more formats of Git URLs for metadata that are sent to semgrep.dev. This work in progress functionality enables working links from the Semgrep App Findings page. The user provides a fallback for repository name (SEMGREP_REPO_NAME) and repository URL (SEMGREP_REPO_URL) if these values are undefined by the CI job. We appreciate any bug reports or suggestions as this feature is still in development.

Changes

  • Previously, the following error message appeared when metrics have not been uploaded within the set timeout timeframe:

    Error in send: HTTPSConnectionPool(host='metrics.semgrep.dev', port=443): Read timed out. (read timeout=3)

    As this caused confusion when running the CLI, this message is now displayed for development and debugging purposes only. Note that metrics are still successfully uploaded, but the success status is not sent in time for the current timeout set.

  • semgrep ci now defaults to fail open on internal errors and always exits with exit code 0, which is equivalent to passing --suppress-errors. To disable this behavior, you can pass --no-suppress-errors, surfacing all exit codes to the CI provider. See Configuring blocking findings and errors for more information.

Additional information

Minor bug fixes are not included in the release notes unless they are potentially breaking your workflow. To see the complete change notes for Semgrep CLI and CI that include fixes, visit the Semgrep changelog.

Documentation updates