File tree Expand file tree Collapse file tree 3 files changed +21
-16
lines changed Expand file tree Collapse file tree 3 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ name: Publish release
2
2
3
3
on :
4
4
pull_request_target :
5
+ branches :
6
+ - main
5
7
types :
6
8
- closed
7
9
Original file line number Diff line number Diff line change
1
+ name : Pull request change base branch
2
+
3
+ on :
4
+ pull_request_target :
5
+ branches :
6
+ - main
7
+ types :
8
+ - opened
9
+
10
+ jobs :
11
+ change-base-branch :
12
+ if : ${{ !startsWith(github.head_ref, 'release/') && github.head_ref != 'develop' }}
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Change base branch
16
+ run : |
17
+ gh pr edit ${{ github.event.pull_request.number }} --base develop
18
+ env :
19
+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
Original file line number Diff line number Diff line change 10
10
timeout-minutes : 15
11
11
permissions :
12
12
checks : write
13
- pull-requests : write
14
13
contents : read
15
14
steps :
16
15
- uses : actions/checkout@v4
57
56
format : " table"
58
57
output : " trivy-scanning-results.txt"
59
58
60
- - name : Format trivy message
61
- run : |
62
- echo "Trivy scanning results." >> trivy.txt
63
- cat trivy-scanning-results.txt >> trivy.txt
64
-
65
- - name : Add trivy report to PR
66
- uses : thollander/actions-comment-pull-request@v2
67
- continue-on-error : true
68
- if : ${{ github.event_name == 'pull_request' }}
69
- with :
70
- filePath : trivy.txt
71
- reactions : " "
72
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
73
- comment_tag : trivy
74
-
75
59
- name : Check licenses
76
60
run : |
77
61
uv run ./check_licenses.sh
You can’t perform that action at this time.
0 commit comments