Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ updates:
update-types: ['version-update:semver-major']
- dependency-name: 'eslint-plugin-react-refresh' # eslint-plugin-react-refresh@>=0.5.x requires eslint@>=9.x.x, blocked by https://github.com/WordPress/gutenberg/issues/64782
update-types: ['version-update:semver-minor']
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
56 changes: 44 additions & 12 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment on lines 31 to +35
Copy link

Copilot AI Apr 29, 2026

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 autobuild step and explicitly sets build-mode: none for 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).

Copilot uses AI. Check for mistakes.

- 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
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR introduces additional workflow behavior beyond version bumps: it splits out a new analyze-kotlin job and adds an explicit Android Gradle build step. Please call this out in the PR description/test plan (it can affect CI time/failure modes) so reviewers understand the scope increase.

Copilot uses AI. Check for mistakes.
- 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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💭 Just wondering, would it make sense to check in the Demo app Package.resolved, now that this job builds the Xcode project? That would make dependency resolution for this step reproducible.


- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
with:
category: '/language:swift'
11 changes: 1 addition & 10 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading