Skip to content

Commit edb09b8

Browse files
Merge pull request #1689 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2 parents 55a8c05 + 612d449 commit edb09b8

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

.github/workflows/analysis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ jobs:
2828
analysis:
2929
runs-on: ubuntu-latest
3030
steps:
31-
- 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]
3237
id: get-vars
3338
run: |
3439
if [ -z "$GITHUB_HEAD_REF" ]; then
@@ -48,6 +53,7 @@ jobs:
4853
fi
4954
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5055
with:
56+
persist-credentials: false
5157
repository: ${{ steps.get-vars.outputs.repo }}
5258
ref: ${{ steps.get-vars.outputs.branch }}
5359
- name: Set up JDK 17

.github/workflows/autoApproveSync.yml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
steps:
3636
- name: Checkout repository
3737
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38+
with:
39+
persist-credentials: false
3840
- name: Set Swap Space
3941
if: runner.environment == 'github-hosted'
4042
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c # v1.0

.github/workflows/pr-feedback.yml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 3 deletions
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 }}

0 commit comments

Comments
 (0)