Skip to content

Commit

Permalink
squash: switch to per job permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
arielvalentin committed Jan 17, 2024
1 parent f4d2804 commit 036e5f2
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/lint-pr-title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@ on:
- synchronize
- reopened
- edited
pull_request_target:
types:
- opened
- synchronize
- reopened
- edited

permissions:
contents: read
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} # Ensure that only one instance of this workflow is running per Pull Request
Expand All @@ -29,6 +19,9 @@ jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: amannn/action-semantic-pull-request@v5.4.0
id: lint_pr_title
Expand Down

0 comments on commit 036e5f2

Please sign in to comment.