File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
name : Add issues and pull request to project boards
6
6
7
- on : [ issues, pull_request ]
7
+ on : [ issues, pull_request, pull_request_target ]
8
8
9
9
jobs :
10
10
github-actions-automate-projects :
11
11
runs-on : ubuntu-latest
12
+
13
+ if : ${{ (github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') || (github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target') }}
12
14
steps :
13
15
- name : add-new-issues-to-repository-based-project-column
14
16
uses : docker://takanabe/github-actions-automate-projects:v0.0.1
19
21
GITHUB_PROJECT_COLUMN_NAME : To do
20
22
- name : add-new-pull-request-to-repository-based-project-column
21
23
uses : docker://takanabe/github-actions-automate-projects:v0.0.1
22
- if : github.event_name == 'pull_request' && github.event.action == 'opened'
24
+ if : ( github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened'
23
25
env :
24
26
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
27
GITHUB_PROJECT_URL : https://github.com/com-pas/compas-scl-data-service/projects/1
33
35
GITHUB_PROJECT_COLUMN_NAME : To do
34
36
- name : add-new-pull-request-to-organization-based-project-column
35
37
uses : docker://takanabe/github-actions-automate-projects:v0.0.1
36
- if : github.event_name == 'pull_request' && github.event.action == 'opened'
38
+ if : ( github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened'
37
39
env :
38
40
GITHUB_TOKEN : ${{ secrets.ORG_GITHUB_ACTION_SECRET }}
39
41
GITHUB_PROJECT_URL : https://github.com/orgs/com-pas/projects/2
Original file line number Diff line number Diff line change 12
12
branches :
13
13
- ' main'
14
14
- ' develop'
15
+ pull_request_target :
16
+ branches :
17
+ - ' main'
18
+ - ' develop'
15
19
16
20
jobs :
17
21
sonar-check :
18
22
name : Sonar Check
19
23
runs-on : ubuntu-latest
20
24
timeout-minutes : 15
21
25
26
+ if : ${{ (github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') || (github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target') }}
22
27
steps :
23
28
- name : Checkout
24
29
uses : actions/checkout@v2
58
63
-Dsonar.projectKey=com-pas_compas-scl-data-service \
59
64
-Dsonar.organization=com-pas \
60
65
-Dsonar.host.url=https://sonarcloud.io \
66
+ -Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
61
67
clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
You can’t perform that action at this time.
0 commit comments