From 6d5e970642278206480e0fafce1d0bcaaa55d033 Mon Sep 17 00:00:00 2001 From: Justin Chu Date: Fri, 1 Nov 2024 18:14:52 -0700 Subject: [PATCH] [CI] Set up proper permissions for linting workflow (#22696) Allow writing security events to post lint messages on PRs. --- .github/workflows/lint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1f0425609e574..64785574c7728 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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