Skip to content

Commit de0b2bd

Browse files
🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <[email protected]>
1 parent 4db40f9 commit de0b2bd

6 files changed

+31
-17
lines changed

.github/workflows/analysis.yml

+18-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# synced from @nextcloud/android-config
22

33
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
4+
# SPDX-FileCopyrightText: 2025 Alper Ozturk <[email protected]>
45
# SPDX-FileCopyrightText: 2023 Tobias Kaminsky <[email protected]>
56
# SPDX-FileCopyrightText: 2023 Andy Scherzinger <[email protected]>
67
# SPDX-FileCopyrightText: 2023 Josh Richards <[email protected]>
8+
# SPDX-FileCopyrightText: 2025 Marcel Hibbe <[email protected]>
79
# SPDX-License-Identifier: GPL-3.0-or-later
810

911
name: "Analysis"
@@ -24,9 +26,14 @@ concurrency:
2426

2527
jobs:
2628
analysis:
27-
runs-on: ubuntu-24.04
29+
runs-on: ubuntu-latest
2830
steps:
29-
- name: Setup variables
31+
- name: Disabled on forks
32+
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
33+
run: |
34+
echo 'Can not analyze PRs from forks'
35+
exit 1
36+
- name: Setup variables # zizmor: ignore[template-injection]
3037
id: get-vars
3138
run: |
3239
if [ -z "$GITHUB_HEAD_REF" ]; then
@@ -46,6 +53,7 @@ jobs:
4653
fi
4754
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4855
with:
56+
persist-credentials: false
4957
repository: ${{ steps.get-vars.outputs.repo }}
5058
ref: ${{ steps.get-vars.outputs.branch }}
5159
- name: Set up JDK 17
@@ -61,9 +69,11 @@ jobs:
6169
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6270
run: |
6371
mkdir -p "$HOME/.gradle"
64-
echo "org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" > "$HOME/.gradle/gradle.properties"
65-
echo "org.gradle.caching=true" >> $HOME/.gradle/gradle.properties
66-
echo "org.gradle.parallel=true" >> $HOME/.gradle/gradle.properties
67-
echo "org.gradle.configureondemand=true" >> $HOME/.gradle/gradle.properties
68-
echo "kapt.incremental.apt=true" >> $HOME/.gradle/gradle.properties
69-
scripts/analysis/analysis-wrapper.sh ${{ steps.get-vars.outputs.branch }} ${{ secrets.LOG_USERNAME }} ${{ secrets.LOG_PASSWORD }} "$GITHUB_RUN_NUMBER" ${{ steps.get-vars.outputs.pr }}
72+
{
73+
echo "org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g"
74+
echo "org.gradle.caching=true"
75+
echo "org.gradle.parallel=true"
76+
echo "org.gradle.configureondemand=true"
77+
echo "kapt.incremental.apt=true"
78+
} > "$HOME/.gradle/gradle.properties"
79+
scripts/analysis/analysis-wrapper.sh "${{ steps.get-vars.outputs.branch }}" "${{ secrets.LOG_USERNAME }}" "${{ secrets.LOG_PASSWORD }}" "$GITHUB_RUN_NUMBER" "${{ steps.get-vars.outputs.pr }}"

.github/workflows/autoApproveSync.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
name: Auto approve sync
88
on:
9-
pull_request_target:
9+
pull_request_target: # zizmor: ignore[dangerous-triggers]
1010
branches:
1111
- master
1212
- main

.github/workflows/codeql.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# SPDX-FileCopyrightText: 2023-2024 Andy Scherzinger <[email protected]>
55
# SPDX-FileCopyrightText: 2022 Tobias Kaminsky <[email protected]>
66
# SPDX-FileCopyrightText: 2022 Álvaro Brey <[email protected]>
7+
# SPDX-FileCopyrightText: 2025 Marcel Hibbe <[email protected]>
78
# SPDX-License-Identifier: GPL-3.0-or-later
89

910
name: "CodeQL"
@@ -22,7 +23,7 @@ permissions:
2223
jobs:
2324
analyze:
2425
name: Analyze
25-
runs-on: ubuntu-24.04
26+
runs-on: ubuntu-latest
2627
permissions:
2728
actions: read
2829
contents: read
@@ -34,12 +35,15 @@ jobs:
3435
steps:
3536
- name: Checkout repository
3637
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38+
with:
39+
persist-credentials: false
3740
- name: Set Swap Space
41+
if: runner.environment == 'github-hosted'
3842
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c # v1.0
3943
with:
4044
swap-size-gb: 10
4145
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
46+
uses: github/codeql-action/init@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
4347
with:
4448
languages: ${{ matrix.language }}
4549
- name: Set up JDK 17
@@ -53,4 +57,4 @@ jobs:
5357
echo "org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
5458
./gradlew assembleDebug
5559
- name: Perform CodeQL Analysis
56-
uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
60+
uses: github/codeql-action/analyze@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12

.github/workflows/pr-feedback.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
blocklist=$(curl https://raw.githubusercontent.com/nextcloud/.github/master/non-community-usernames.txt | paste -s -d, -)
3737
echo "blocklist=$blocklist" >> "$GITHUB_OUTPUT"
3838
39-
- uses: marcelklehr/pr-feedback-action@1883b38a033fb16f576875e0cf45f98b857655c4
39+
- uses: nextcloud/pr-feedback-action@1883b38a033fb16f576875e0cf45f98b857655c4 # main
4040
with:
4141
feedback-message: |
4242
Hello there,

.github/workflows/renovate-approve-merge.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
name: Auto approve renovate PRs
1010

1111
on:
12-
pull_request_target:
12+
pull_request_target: # zizmor: ignore[dangerous-triggers]
1313
branches:
1414
- main
1515
- master
@@ -24,7 +24,7 @@ concurrency:
2424

2525
jobs:
2626
auto-approve-merge:
27-
if: github.actor == 'renovate[bot]'
27+
if: github.event.pull_request.user.login == 'renovate[bot]'
2828
runs-on: ubuntu-latest
2929
permissions:
3030
# for hmarr/auto-approve-action to approve PRs
@@ -52,7 +52,7 @@ jobs:
5252

5353
# Enable GitHub auto merge
5454
- name: Auto merge
55-
uses: alexwilson/enable-github-automerge-action@main
55+
uses: alexwilson/enable-github-automerge-action@56e3117d1ae1540309dc8f7a9f2825bc3c5f06ff # v2.0.0
5656
if: startsWith(steps.branchname.outputs.branch, 'renovate/')
5757
with:
5858
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/scorecard.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242

4343
# Upload the results to GitHub's code scanning dashboard.
4444
- name: "Upload to code-scanning"
45-
uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
45+
uses: github/codeql-action/upload-sarif@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
4646
with:
4747
sarif_file: results.sarif

0 commit comments

Comments
 (0)