Skip to content

fix: add CodeQL workflow and restrict workflow permissions#317

Merged
MO2k4 merged 2 commits intomasterfrom
fix/codeql-kotlin-build
Apr 10, 2026
Merged

fix: add CodeQL workflow and restrict workflow permissions#317
MO2k4 merged 2 commits intomasterfrom
fix/codeql-kotlin-build

Conversation

@MO2k4
Copy link
Copy Markdown
Owner

@MO2k4 MO2k4 commented Apr 10, 2026

Summary

  • Adds a custom CodeQL workflow (codeql.yml) with build-mode: none for java-kotlin to fix the compilation failure (Task :protocol:compileKotlin FAILED) in the default setup — the IntelliJ Platform dependencies aren't available in CodeQL's environment
  • Adds explicit permissions: contents: read to both main.yml and codeql.yml to resolve CodeQL alert Unavailable for Resharper 2019.1.1 #3 (CWE-275 / actions/missing-workflow-permissions)

Post-merge

  • Disable CodeQL "Default setup" in GitHub Settings > Code security, since the custom workflow replaces it

MO2k4 added 2 commits April 10, 2026 22:17
- Add custom CodeQL workflow with build-mode: none for java-kotlin
  to fix compilation failure in default setup
- Add explicit permissions (contents: read) to both workflows
  to resolve CodeQL alert #3 (CWE-275)
- Update github/codeql-action from v3 to v4
- Remove java-kotlin from matrix since build-mode: none is not
  supported for compiled languages and the IntelliJ Platform
  dependencies cannot be resolved in CodeQL's environment
@sonarqubecloud
Copy link
Copy Markdown

@MO2k4 MO2k4 merged commit 34b532e into master Apr 10, 2026
6 checks passed
@MO2k4 MO2k4 deleted the fix/codeql-kotlin-build branch April 10, 2026 20:30
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.

1 participant