Skip to content

Commit dbee879

Browse files
committed
chore(ci): update PR title validation workflow
- Changed runner from ubuntu-latest to ubuntu-slim for a more lightweight environment. - Enhanced permissions to allow posting check results and WIP pending state. - Updated action version for semantic pull request validation to a specific commit for stability.
1 parent 23ca5e3 commit dbee879

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/pr-title.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ permissions:
1414
jobs:
1515
validate-pr-title:
1616
name: Validate PR Title
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-slim # Lightweight runner per action README
1818
timeout-minutes: 5
1919
permissions:
2020
pull-requests: read
21+
statuses: write # Required for action to post check result and WIP pending state
2122
steps:
2223
- name: Validate PR title
23-
uses: amannn/action-semantic-pull-request@v6
24+
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
2425
env:
2526
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2627
with:

0 commit comments

Comments
 (0)