From 2c7ab8392faf86ab7692172d551559756acc988d Mon Sep 17 00:00:00 2001 From: Hiep Mai Date: Sat, 21 Sep 2024 10:31:09 +0700 Subject: [PATCH] add permission --- .github/workflows/codescan.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/codescan.yml b/.github/workflows/codescan.yml index 189d41089..3d373a957 100644 --- a/.github/workflows/codescan.yml +++ b/.github/workflows/codescan.yml @@ -8,6 +8,12 @@ on: jobs: build: runs-on: ubuntu-latest + permissions: + # required for all workflows + security-events: write + + # required to fetch internal or private CodeQL packs + packages: read steps: - name: Check out code into the Go module directory uses: actions/checkout@v4