Skip to content

Commit f2841ee

Browse files
authored
ci: fix workflows for external PRs (#2136)
2 parents c30afe3 + 229b54d commit f2841ee

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.github/workflows/conventional-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name: Conventional commit checks
55

66
on:
7-
pull_request:
7+
pull_request_target:
88
types: [ edited, opened, ready_for_review, review_requested, reopened, closed, synchronize ]
99

1010
jobs:

.github/workflows/conventional-label.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
name: Conventional PR label
55

66
on:
7-
pull_request:
8-
types: [ opened, edited, ready_for_review, review_requested, reopened ]
7+
pull_request_target:
8+
types: [ opened, edited ]
99

1010
jobs:
1111
add_conventional_release_labels:
@@ -18,5 +18,3 @@ jobs:
1818
type_labels: '{"feat": "feature", "fix": "fix", "docs": "documentation", "style": "style", "refactor": "refactor", "test": "test", "build": "build", "perf": "performance", "ci": "ci", "chore": "chore", "revert": "revert", "merge": "merge", "wip": "wip"}'
1919
ignored_types: '["chore"]'
2020
ignore_label: 'ignore-for-release'
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/run_maven_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Java CI with Maven
66
on:
77
push:
88
branches: [ "main" ]
9-
pull_request:
9+
pull_request_target:
1010
branches: [ "**" ]
1111

1212
jobs:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Releasing is documented in RELEASE.md
4545

4646
### Fixed
4747
- remove spurious entry for an unassigned country ID value 137 from the documentation ([#2103](https://github.com/GIScience/openrouteservice/pull/2103))
48+
- make github workflows work for external PRs ([#2136](https://github.com/GIScience/openrouteservice/pull/2136))
4849

4950
### Security
5051
- update spring-boot-starter to 3.4.9 fixes

0 commit comments

Comments
 (0)