Skip to content

refactor: even also check actions by CodeQL #4623

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mfranzke
Copy link
Collaborator

@mfranzke mfranzke commented Jul 27, 2025

Proposed changes

We want to check both the JavaScript and the GitHub Actions code using CodeQL.

Types of changes

  • Bugfix (non-breaking change that fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (improvements to existing components or architectural decisions)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Further comments

@mfranzke mfranzke self-assigned this Jul 27, 2025
@mfranzke mfranzke added the 🍄🆙improvement New feature or request label Jul 27, 2025
@mfranzke mfranzke added the 🧪test Improvements/bugs for testing-framework label Jul 27, 2025
@mfranzke mfranzke moved this to 🏗 In development in UX Engineering Team Backlog Jul 27, 2025
Copy link
Contributor

@github-actions github-actions bot added the 🚢📀cicd Changes inside .github folder label Jul 27, 2025
@github-advanced-security
Copy link

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.

@mfranzke mfranzke added the 🍒 cherryPick Code that we should adapt from one repository to another. label Jul 27, 2025
# or others). This is typically only required for manual builds.
# - name: Setup runtime (example)
# uses: actions/setup-example@v1
- name: Setup Node.js
Copy link
Collaborator

Choose a reason for hiding this comment

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

This generated code from copilot...

Why do we need to install the dependencies here?

@mfranzke mfranzke requested a review from Copilot August 5, 2025 21:37
Copy link
Contributor

@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 refactors the CodeQL analysis workflow to analyze both JavaScript/TypeScript and GitHub Actions code instead of just JavaScript. The changes enable comprehensive static analysis across different code types in the repository.

  • Expanded CodeQL analysis to cover GitHub Actions workflows in addition to JavaScript/TypeScript code
  • Added Node.js setup and dependency installation steps to support proper analysis
  • Updated workflow configuration to use matrix strategy with multiple languages and build modes

- name: 🔄 Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
Copy link
Preview

Copilot AI Aug 5, 2025

Choose a reason for hiding this comment

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

The build-mode parameter should be nested under the with: key, not at the same level as languages. This will cause the workflow to fail as build-mode is not a valid top-level parameter for the init action.

Suggested change
build-mode: ${{ matrix.build-mode }}
build-mode: none

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 cherryPick Code that we should adapt from one repository to another. 🚢📀cicd Changes inside .github folder 🍄🆙improvement New feature or request 🧪test Improvements/bugs for testing-framework
Projects
Status: 🏗 In development
Development

Successfully merging this pull request may close these issues.

2 participants