-
Notifications
You must be signed in to change notification settings - Fork 230
CI: Fix Skipped Required Workflows (again) #5907
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
ax3l
merged 6 commits into
BLAST-WarpX:development
from
EZoni:ci_docs_skip_checks_amrex_take2
Jun 20, 2025
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8de357a
CI: Fix Skipped Required Workflows (again)
EZoni f8834a9
Update .github/workflows/clang_tidy.yml
EZoni 1a24c23
Revert changes to CodeQL workflow
EZoni a6a94e4
Remove cron schedule for CodeQL workflows
EZoni 705fd1a
Skip also initial checkout step
EZoni a862722
Update .github/workflows/check_changes.yml
EZoni 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
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 |
|---|---|---|
|
|
@@ -2,52 +2,52 @@ name: 🔍 CodeQL | |
|
|
||
| on: | ||
| push: | ||
| branches: [ "development" ] | ||
| branches: | ||
| - "development" | ||
| pull_request: | ||
| branches: [ "development" ] | ||
| schedule: | ||
| - cron: "27 3 * * 0" | ||
|
Comment on lines
-8
to
-9
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed |
||
| branches: | ||
| - "development" | ||
|
|
||
| concurrency: | ||
| group: ${{ github.ref }}-${{ github.head_ref }}-codeql | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
|
|
||
| check_changes: | ||
| name: Analyze | ||
| uses: ./.github/workflows/check_changes.yml | ||
|
|
||
| analyze: | ||
| name: Analyze | ||
| runs-on: ubuntu-24.04 | ||
| if: github.event.pull_request.draft == false | ||
| needs: check_changes | ||
| if: ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }} | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| language: [ python, cpp ] | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-python@v5 | ||
| name: Install Python | ||
| with: | ||
| python-version: '3.x' | ||
|
|
||
| - name: Install Packages (C++) | ||
| if: ${{ matrix.language == 'cpp' }} | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install --yes cmake openmpi-bin libopenmpi-dev libhdf5-openmpi-dev libadios-openmpi-dev ccache | ||
|
|
||
| python -m pip install --upgrade pip | ||
| python -m pip install --upgrade pipx | ||
| python -m pip install --upgrade wheel | ||
| python -m pip install --upgrade cmake | ||
| python -m pipx install cmake | ||
|
|
||
| - name: Set Up Cache | ||
| if: ${{ matrix.language == 'cpp' }} | ||
| uses: actions/cache@v4 | ||
|
|
@@ -56,48 +56,39 @@ jobs: | |
| key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }} | ||
| restore-keys: | | ||
| ccache-${{ github.workflow }}-${{ github.job }}-git- | ||
|
|
||
| - name: Configure (C++) | ||
| if: ${{ matrix.language == 'cpp' }} | ||
| run: | | ||
| cmake -S . -B build -DWarpX_OPENPMD=ON | ||
|
|
||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v3 | ||
| with: | ||
| config-file: ./.github/codeql/warpx-codeql.yml | ||
| languages: ${{ matrix.language }} | ||
| queries: +security-and-quality | ||
|
|
||
| - name: Build (py) | ||
| uses: github/codeql-action/autobuild@v3 | ||
| if: ${{ matrix.language == 'python' }} | ||
|
|
||
| - name: Build (C++) | ||
| if: ${{ matrix.language == 'cpp' }} | ||
| run: | | ||
| export CCACHE_COMPRESS=1 | ||
| export CCACHE_COMPRESSLEVEL=10 | ||
| export CCACHE_MAXSIZE=100M | ||
| ccache -z | ||
|
|
||
| cmake --build build -j 4 | ||
|
|
||
| ccache -s | ||
| du -hs ~/.cache/ccache | ||
|
|
||
| # Make sure CodeQL has something to do | ||
| touch Source/Utils/WarpXVersion.cpp | ||
| export CCACHE_DISABLE=1 | ||
| cmake --build build -j 4 | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v3 | ||
| with: | ||
| category: "/language:${{ matrix.language }}" | ||
| upload: False | ||
| output: sarif-results | ||
|
|
||
| - name: filter-sarif | ||
| uses: advanced-security/filter-sarif@v1 | ||
| with: | ||
|
|
@@ -111,7 +102,6 @@ jobs: | |
| -build/_deps/*/*/*/*/*/*/*/* | ||
| input: sarif-results/${{ matrix.language }}.sarif | ||
| output: sarif-results/${{ matrix.language }}.sarif | ||
|
|
||
| - name: Upload SARIF | ||
| uses: github/codeql-action/upload-sarif@v3 | ||
| with: | ||
|
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.