From d2ec4647ad20a734c7094fd61c0352b06db6d030 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Thu, 11 Jul 2024 13:19:45 +0800 Subject: [PATCH] Update token-permission to read Signed-off-by: Wei Liu --- .github/workflows/codeql.yml | 2 +- .github/workflows/deny.yml | 2 +- .github/workflows/format.yml | 2 +- .github/workflows/integration.yml | 2 +- .github/workflows/main.yml | 2 +- .github/workflows/scorecard.yml | 2 +- .github/workflows/unittest.yml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6bfc474..c0a6808 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -21,7 +21,7 @@ on: - cron: "0 0 * * 1" permissions: - contents: read-all + contents: read jobs: analyze: diff --git a/.github/workflows/deny.yml b/.github/workflows/deny.yml index dd95814..6c8f160 100644 --- a/.github/workflows/deny.yml +++ b/.github/workflows/deny.yml @@ -7,7 +7,7 @@ on: paths-ignore: - "**.md" permissions: - contents: read-all + contents: read jobs: cargo-deny: diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 1314b62..b87b513 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -14,7 +14,7 @@ env: CC: clang permissions: - contents: read-all + contents: read jobs: clippy: diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index cede780..3a855af 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -13,7 +13,7 @@ env: TOOLCHAIN_PROFILE: minimal permissions: - contents: read-all + contents: read jobs: integration: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a642f4b..6c101be 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,5 @@ permissions: - contents: read-all + contents: read on: push: diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index ea18046..421bac5 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -15,7 +15,7 @@ on: branches: [ "main" ] # Declare default permissions as read only. -permissions: read-all +permissions: read jobs: analysis: diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index e068877..85604da 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -1,5 +1,5 @@ permissions: - contents: read-all + contents: read on: push: