[CI] Set up proper permissions for linting workflow (#22696)

Allow writing security events to post lint messages on PRs.
This commit is contained in:
Justin Chu 2024-11-01 18:14:52 -07:00 committed by GitHub
parent 62c3476822
commit 6d5e970642
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,6 +37,9 @@ jobs:
# Required workflow
name: Python format
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
- name: Setup Python