Skip to content

Commit

Permalink
chore: pr label token permission (#246)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Improvements**
- Enhanced permissions for pull request workflows to improve security
and functionality.
- Standardized the authentication method for labeling pull requests by
using the `GITHUB_TOKEN`.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
rokam authored Jul 26, 2024
1 parent 06c4e02 commit 9588102
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ jobs:
lint-pr-name:
name: Validate PR title
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
label-pr:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: grafana/[email protected]
with:
token: ${{ secrets.MIDEA_GITHUB_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9588102

Please sign in to comment.