File tree Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 66
77name : Auto approve sync
88on :
9- pull_request_target :
9+ pull_request_target : # zizmor: ignore[dangerous-triggers]
1010 branches :
1111 - master
1212 - main
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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,
Original file line number Diff line number Diff line change 99name : Auto approve renovate PRs
1010
1111on :
12- pull_request_target :
12+ pull_request_target : # zizmor: ignore[dangerous-triggers]
1313 branches :
1414 - main
1515 - master
@@ -24,7 +24,7 @@ concurrency:
2424
2525jobs :
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
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 }}
You can’t perform that action at this time.
0 commit comments