From f484f4f7788867068b3cb8f19a3128c32dd254ef Mon Sep 17 00:00:00 2001 From: "Lin, Sherry" Date: Wed, 21 Feb 2024 16:18:33 +0800 Subject: [PATCH] workflow: add workflow permission for all jobs including Ubuntu/Windows Signed-off-by: Lin, Sherry --- .github/workflows/ubuntu.yml | 2 ++ .github/workflows/windows.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 2b8b30a5..5061e9b7 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -10,6 +10,8 @@ on: - '.github/workflows/**' - '!.github/workflows/ubuntu.yml' +permissions: read + jobs: ubuntu-20-04: runs-on: ubuntu-20.04 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index eb5f24b3..4d6dfc9a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -12,6 +12,8 @@ on: - '!.github/workflows/windows.yml' - '!.github/workflows/EnterDevShell.ps1' +permissions: read + jobs: windows-msvc: runs-on: windows-2022