Skip to content

ci: Enable Semgrep and Zizmor scans#622

Open
adimoft wants to merge 1 commit into
mainfrom
enable_semgrep_zizmor
Open

ci: Enable Semgrep and Zizmor scans#622
adimoft wants to merge 1 commit into
mainfrom
enable_semgrep_zizmor

Conversation

@adimoft

@adimoft adimoft commented Jul 1, 2026

Copy link
Copy Markdown

This pull request adds two new GitHub Actions workflows to automate static code analysis and security scanning for the repository. These workflows introduce Semgrep and Zizmor scans on each push and pull request to the main branch, enhancing the project's security and code quality checks.

Jira: https://jira.devtools.intel.com/browse/NEXUIE-132281

Security and Code Quality Automation:

  • Added a new workflow .github/workflows/semgrep.yml to run Semgrep scans on pushes and pull requests to the main branch, using a containerized Semgrep image and a hardened runner setup.
  • Added a new workflow .github/workflows/zizmor.yml to run Zizmor scans, generate SARIF reports, upload results to GitHub Security, and store artifacts for further review, also using a hardened runner and a specific version of the Zizmor tool.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds repository security automation by introducing two new GitHub Actions workflows to run static analysis/security scans (Semgrep and Zizmor) on pushes/PRs to main, with hardened runner setup and artifact/report handling.

Changes:

  • Add a Semgrep scanning workflow triggered on push/pull_request/manual runs.
  • Add a Zizmor scanning workflow that generates SARIF, uploads to GitHub code scanning, and uploads the SARIF as an artifact.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
.github/workflows/semgrep.yml New workflow to run Semgrep scans on main pushes/PRs using a pinned Semgrep container image and hardened runner.
.github/workflows/zizmor.yml New workflow to run Zizmor, generate SARIF, upload to code scanning, and publish the SARIF as an artifact.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/semgrep.yml
Comment thread .github/workflows/zizmor.yml
Comment thread .github/workflows/zizmor.yml
Comment thread .github/workflows/zizmor.yml
@adimoft adimoft force-pushed the enable_semgrep_zizmor branch from 8feeea2 to c468451 Compare July 1, 2026 07:43
@@ -0,0 +1,38 @@
# SPDX-FileCopyrightText: (C) 2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
---

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants