Skip to content

Commit d7ca0c0

Browse files
authored
Merge pull request #52 from carstenartur/copilot/update-sync-and-rebase-workflows
2 parents ff1590d + f6ce0fb commit d7ca0c0

3 files changed

Lines changed: 58 additions & 9 deletions

File tree

.github/workflows/fork-build.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: "Fork Build"
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '20 9 * * 2'
10+
11+
jobs:
12+
build:
13+
name: Build
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: [ 'java' ]
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
- name: Set up Maven
29+
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
30+
with:
31+
maven-version: 3.9.9
32+
- name: Setup Java JDK
33+
uses: actions/setup-java@v4
34+
with:
35+
distribution: 'temurin'
36+
java-version: '21'
37+
38+
- name: Initialize CodeQL
39+
uses: github/codeql-action/init@v3
40+
with:
41+
languages: ${{ matrix.language }}
42+
43+
- name: Build with Maven
44+
run: mvn -B package -Pbuild-individual-bundles --file pom.xml
45+
46+
- name: Perform CodeQL Analysis
47+
uses: github/codeql-action/analyze@v3
48+
env:
49+
CODEQL_ACTION_EXTRA_OPTIONS: '{"database":{"interpret-results":["--max-paths", 1]}}'

.github/workflows/rebase-upstream.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
pull-requests: write
1616
steps:
1717
- name: Add comment with rebase instructions
18-
uses: actions/github-script@v7
18+
uses: actions/github-script@v8
1919
with:
2020
script: |
2121
const comment = `### 🔄 Rebase on Upstream Master
@@ -53,7 +53,7 @@ jobs:
5353
steps:
5454
- name: Check if user is authorized
5555
id: check-auth
56-
uses: actions/github-script@v7
56+
uses: actions/github-script@v8
5757
with:
5858
script: |
5959
const author_association = context.payload.comment.author_association;
@@ -73,7 +73,7 @@ jobs:
7373
7474
- name: Add rocket reaction to acknowledge command
7575
if: steps.check-auth.outputs.result == 'true'
76-
uses: actions/github-script@v7
76+
uses: actions/github-script@v8
7777
with:
7878
script: |
7979
github.rest.reactions.createForIssueComment({
@@ -86,7 +86,7 @@ jobs:
8686
- name: Get PR branch information
8787
if: steps.check-auth.outputs.result == 'true'
8888
id: pr-info
89-
uses: actions/github-script@v7
89+
uses: actions/github-script@v8
9090
with:
9191
script: |
9292
const { data: pr } = await github.rest.pulls.get({
@@ -197,7 +197,7 @@ jobs:
197197
198198
- name: Add success comment and reaction
199199
if: steps.check-auth.outputs.result == 'true' && steps.rebase.outputs.rebase_failed != 'true' && steps.push.outputs.push_failed != 'true'
200-
uses: actions/github-script@v7
200+
uses: actions/github-script@v8
201201
with:
202202
script: |
203203
await github.rest.reactions.createForIssueComment({
@@ -216,7 +216,7 @@ jobs:
216216
217217
- name: Add rebase failure comment and reaction
218218
if: steps.check-auth.outputs.result == 'true' && failure() && steps.rebase.outputs.rebase_failed == 'true'
219-
uses: actions/github-script@v7
219+
uses: actions/github-script@v8
220220
with:
221221
script: |
222222
await github.rest.reactions.createForIssueComment({
@@ -256,7 +256,7 @@ jobs:
256256
257257
- name: Add push failure comment and reaction
258258
if: steps.check-auth.outputs.result == 'true' && failure() && steps.push.outputs.push_failed == 'true'
259-
uses: actions/github-script@v7
259+
uses: actions/github-script@v8
260260
with:
261261
script: |
262262
await github.rest.reactions.createForIssueComment({

.github/workflows/sync-upstream.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
run: |
8383
# Check if there are changes to commit
8484
if ! git diff --cached --quiet; then
85-
git commit -m "Fork-specific customizations"
85+
git commit -m "Fork-specific CI and workflow configurations"
8686
echo "✅ Fork-specific changes committed"
8787
else
8888
echo "ℹ️ No fork-specific changes to commit"
@@ -219,7 +219,7 @@ jobs:
219219
run: |
220220
# Check if there are changes to commit
221221
if ! git diff --cached --quiet; then
222-
git commit -m "Fork-specific customizations"
222+
git commit -m "Fork-specific CI and workflow configurations"
223223
echo "✅ Fork-specific changes committed"
224224
else
225225
echo "ℹ️ No fork-specific changes to commit"

0 commit comments

Comments
 (0)