fix: add CodeQL workflow and restrict workflow permissions#317
Merged
Conversation
- 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
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
codeql.yml) withbuild-mode: noneforjava-kotlinto fix the compilation failure (Task :protocol:compileKotlin FAILED) in the default setup — the IntelliJ Platform dependencies aren't available in CodeQL's environmentpermissions: contents: readto bothmain.ymlandcodeql.ymlto resolve CodeQL alert Unavailable for Resharper 2019.1.1 #3 (CWE-275 /actions/missing-workflow-permissions)Post-merge