Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

ci: enable security code scanner#20

Merged
alainncls merged 1 commit intomainfrom
enable-security-code-scanner
Dec 3, 2025
Merged

ci: enable security code scanner#20
alainncls merged 1 commit intomainfrom
enable-security-code-scanner

Conversation

@witmicko
Copy link
Copy Markdown
Collaborator

@witmicko witmicko commented Dec 2, 2025

Required Action

Prior to merging this pull request, please ensure the following has been completed:

  • The lines specifying branches correctly specifies this repository's default branch (usually main or master).
  • Any paths you would like to ignore have been added to the paths-ignored configuration option (see setup)
  • Language configuration has been reviewed - ignore falsely detected languages or add build commands for Java/Kotlin if needed (see Configuration section below)
  • Any existing CodeQL configuration has been disabled.

What is the Security Code Scanner?

This pull request enables the MetaMask Security Code Scanner GitHub Action. This action runs on each pull request, and will flag potential vulnerabilities as a review comment. It will also scan this repository's default branch, and log any findings in this repository's Code Scanning Alerts Tab.

Screenshot 2024-02-12 at 9 19 05 PM

The action itself runs various static analysis engines behind the scenes. Currently, it is only running GitHub's CodeQL engine. For this reason, we recommend disabling any existing CodeQL configuration your repository may have.

How do I interact with the tool?

Every finding raised by the Security Code Scanner will present context behind the potential vulnerability identified, and allow the developer to fix, or dismiss it.

The finding will automatically be dismissed by pushing a commit that fixes the identified issue, or by manually dismissing the alert using the button in GitHub's UI. If dismissing an alert manually, please add any additional context surrounding the reason for dismissal, as this informs our decision to disable, or improve any poor performing rules.

Screenshot 2024-02-12 at 8 41 46 PM

Configuration

Language Configuration

The scanner auto-detects languages in your repository. If you need to customize language-specific settings, you can modify the languages-config section in the workflow file.

Common use cases:

  1. Ignore falsely detected languages:

    languages-config: |
      [
        {
          "language": "ruby",
          "ignore": true
        }
      ]
  2. Configure Java/Kotlin builds:

    languages-config: |
      [
        {
          "language": "java-kotlin",
          "build_mode": "manual",
          "build_command": "./gradlew build",
          "version": "21",
          "distribution": "temurin"
        }
      ]

Supported languages: javascript-typescript, python, java-kotlin, go, cpp, csharp, ruby

Build modes: none, autobuild, manual

Additional Configuration

For more configuration options, please review the tool's README.

Optional secrets that can be configured:

  • SECURITY_SCAN_METRICS_TOKEN - for metrics collection
  • APPSEC_BOT_SLACK_WEBHOOK - for Slack notifications

For any additional questions, please reach out to @app-sec in Slack.


Note

Adds a GitHub Actions workflow to run the MetaMask Security Code Scanner on pushes/PRs to main with ignore paths and optional secrets.

  • CI/CD:
    • New Workflow: /.github/workflows/security-code-scanner.yml
      • Triggers on push, pull_request to main, workflow_call, and workflow_dispatch.
      • Uses MetaMask/action-security-code-scanner/.github/workflows/security-scan.yml@v2 with minimal permissions.
      • Configures inputs:
        • paths-ignored list for tests, stories, snapshots, and node_modules.
        • languages-config present but empty.
      • Wires secrets: SECURITY_SCAN_METRICS_TOKEN and APPSEC_BOT_SLACK_WEBHOOK.

Written by Cursor Bugbot for commit ccb8520. This will update automatically on new commits. Configure here.

@witmicko witmicko requested a review from alainncls as a code owner December 2, 2025 10:09
@netlify
Copy link
Copy Markdown

netlify bot commented Dec 2, 2025

Deploy Preview for verax-tutorial ready!

Name Link
🔨 Latest commit ccb8520
🔍 Latest deploy log https://app.netlify.com/projects/verax-tutorial/deploys/692ebac3c39aba0008ee2460
😎 Deploy Preview https://deploy-preview-20--verax-tutorial.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-advanced-security
Copy link
Copy Markdown

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Comment thread .github/workflows/security-code-scanner.yml
@alainncls alainncls merged commit ce424eb into main Dec 3, 2025
15 checks passed
@alainncls alainncls deleted the enable-security-code-scanner branch December 3, 2025 18:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants