From f2d56e5b55229e7b2ffd54362b594b59fc2217db Mon Sep 17 00:00:00 2001 From: RonnyChan Date: Tue, 12 Aug 2025 15:51:28 +0800 Subject: [PATCH] [github] Specify the scope of application of the token in the action. --- .github/workflows/elsa-compile.yml | 2 ++ .github/workflows/framework-java-compile.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/elsa-compile.yml b/.github/workflows/elsa-compile.yml index 10ecb5f1d..39b8b5cc1 100644 --- a/.github/workflows/elsa-compile.yml +++ b/.github/workflows/elsa-compile.yml @@ -16,6 +16,8 @@ on: jobs: build: + permissions: + contents: read runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/framework-java-compile.yml b/.github/workflows/framework-java-compile.yml index 882a27ef9..36ece6b97 100644 --- a/.github/workflows/framework-java-compile.yml +++ b/.github/workflows/framework-java-compile.yml @@ -22,6 +22,8 @@ on: jobs: build: + permissions: + contents: read runs-on: ubuntu-latest steps: - uses: actions/checkout@v4