-
Notifications
You must be signed in to change notification settings - Fork 3
ci: update CodeQL workflow actions and add Dependabot monitoring #413
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
base: trunk
Are you sure you want to change the base?
Changes from all commits
b854402
a9e5b4f
d2a7003
f5b68f3
99ff8e7
a81704e
a4c9c1f
23360a8
a04b5bb
b2e4477
4286590
9e0f913
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,46 +22,78 @@ jobs: | |
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| language: [actions, java-kotlin, javascript-typescript] | ||
| language: [actions, javascript-typescript] | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v3 | ||
| uses: github/codeql-action/init@v4 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
|
|
||
| - name: Autobuild | ||
| uses: github/codeql-action/autobuild@v3 | ||
| build-mode: none | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v3 | ||
| uses: github/codeql-action/analyze@v4 | ||
| with: | ||
| category: '/language:${{ matrix.language }}' | ||
|
|
||
| analyze-kotlin: | ||
| name: Analyze (java-kotlin) | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v4 | ||
| with: | ||
| languages: java-kotlin | ||
|
|
||
| - name: Build Android project | ||
| run: cd android && ./gradlew compileDebugSources compileDebugUnitTestSources | ||
|
|
||
|
Comment on lines
+42
to
+58
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v4 | ||
| with: | ||
| category: '/language:java-kotlin' | ||
|
|
||
| analyze-swift: | ||
| name: Analyze (swift) | ||
| runs-on: macos-15 | ||
| timeout-minutes: 30 | ||
| timeout-minutes: 45 | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Select Xcode | ||
| run: sudo xcode-select -s /Applications/Xcode_26.0.1.app/Contents/Developer | ||
|
|
||
| - name: Cache SPM dependencies | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ~/Library/Caches/org.swift.swiftpm/repositories | ||
| key: spm-${{ runner.os }}-${{ hashFiles('Package.resolved') }} | ||
| restore-keys: | | ||
| spm-${{ runner.os }}- | ||
|
|
||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v3 | ||
| uses: github/codeql-action/init@v4 | ||
| with: | ||
| languages: swift | ||
|
|
||
| - name: Build Swift package | ||
| run: swift build --target GutenbergKit --target GutenbergKitHTTP | ||
| run: swift build | ||
|
|
||
| - name: Build Demo app | ||
| run: xcodebuild build -project ios/Demo-iOS/Gutenberg.xcodeproj -scheme Gutenberg -destination 'generic/platform=iOS' CODE_SIGNING_ALLOWED=NO | ||
|
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. 💭 Just wondering, would it make sense to check in the Demo app |
||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v3 | ||
| uses: github/codeql-action/analyze@v4 | ||
| with: | ||
| category: '/language:swift' | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
The PR description claims only action bumps with no behavioral changes, but this workflow change also removes the CodeQL
autobuildstep and explicitly setsbuild-mode: nonefor the interpreted-language matrix. Please update the PR description/test plan to reflect these workflow behavior changes (and confirm they don’t reduce JS/TS extraction coverage compared to the previous autobuild-based setup).