Skip to content

chore(): Added CodeQL Analysis Workflow#99

Open
andoriyaprashant wants to merge 1 commit intokubeslice:masterfrom
andoriyaprashant:codeql
Open

chore(): Added CodeQL Analysis Workflow#99
andoriyaprashant wants to merge 1 commit intokubeslice:masterfrom
andoriyaprashant:codeql

Conversation

@andoriyaprashant
Copy link
Copy Markdown

Description

This PR adds a GitHub Actions workflow for Codeql security scanning in the kubeslice-cli repository.
The workflow will run static analysis on Go code to detect potential vulnerabilities and maintain code quality.

  • Runs on push and pull requests to master
  • Scheduled weekly scan (Sunday 00:00 UTC)
  • Configured for Go only
  • Uses GitHub’s official codeql-action with minimal permissions for enhanced security

Fixes kubeslice/kubeslice#64

How Has This Been Tested?

The workflow was validated using GitHub Actions syntax checks and verified in a fork before opening this PR.

Test cases

  • Workflow triggers on push to master
  • Workflow triggers on PR to master
  • Workflow runs on scheduled cron job
  • CodeQL successfully initializes and analyzes Go code

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit test cases.

Signed-off-by: andoriyaprashant <prashantandoriya@gmail.com>
@pnavali
Copy link
Copy Markdown

pnavali commented Aug 20, 2025

@gourishkb @bharath-avesha please review

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.

Feature: Add CodeQL Workflow for Static Code Analysis in KubeSlice Repositories

2 participants