chore: permissions: update permissions 2024 11 25 #230
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: pull request checks | |
"on": | |
pull_request: | |
types: [opened, synchronize] | |
permissions: | |
contents: read | |
pull-requests: write | |
statuses: write | |
actions: read | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
check-pr: | |
runs-on: ubuntu-latest | |
name: default | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Run lints | |
uses: nuonco/sandboxes/actions/pr-checks@main | |
update_status: | |
name: update status | |
if: github.event_name == 'pull_request' && always() | |
needs: | |
- check-pr | |
runs-on: ubuntu-latest | |
steps: | |
- uses: martialonline/workflow-status@v3 | |
id: check | |
- name: Update status | |
uses: ouzi-dev/[email protected] | |
with: | |
name: pull_request ✅ | |
status: success |