Repository navigation
Add Qodana scanning to pull requests and master #268
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: Qodana | ||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - master | ||
|
|
||
| permissions: {} | ||
|
|
||
| concurrency: | ||
| group: qodana-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| qodana: | ||
| runs-on: ubuntu-22.04 | ||
| timeout-minutes: 30 | ||
| if: github.repository == 'XOOPS/XoopsCore27' | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| checks: write | ||
| env: | ||
| QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Qodana Scan | ||
| if: env.QODANA_TOKEN != '' | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| uses: JetBrains/qodana-action@3e8d76ff0e0241618abd808682f426afe84bab3f # v2026.2.2 | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| version: "1.0" | ||
|
|
||
| image: jetbrains/qodana-php:2026.2 | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| profile: | ||
| name: qodana.recommended | ||
|
|
||
| php: | ||
| version: "8.4" | ||
|
|
||
| bootstrap: cd htdocs/xoops_lib && cp composer.dist.json composer.json && cp composer.dist.lock composer.lock && composer install --no-interaction --prefer-dist '--ignore-platform-req=ext-*' | ||
|
|
||
| exclude: | ||
| - name: All | ||
| paths: | ||
| - htdocs/xoops_lib/vendor | ||
| - htdocs/class/libraries/vendor | ||
| - htdocs/install | ||
| - htdocs/xoops_data | ||
| - extras | ||
| - tests | ||
| - build | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Medium · Fork pull requests skip scanning
When a pull request comes from a fork, gitHub does not expose repository secrets to
pull_requestruns from forks, soQODANA_TOKENis empty and the Qodana step is skipped; no tokenless scan or other fallback analyzes those pull requests.Provide a safe tokenless scanning path for fork pull requests, or otherwise make clear that Qodana coverage is limited to runs with the secret.
Prompt for AI agents