From 125210c108e234f977f0c37883378b923ba7d2be Mon Sep 17 00:00:00 2001 From: Naveen <172697+naveensrinivasan@users.noreply.github.com> Date: Mon, 4 Apr 2022 22:58:46 -0500 Subject: [PATCH] Set permissions for GitHub actions (#8005) - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com> --- .github/workflows/ci.yml | 3 +++ .github/workflows/nightly.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e09425f4a..7c0630790 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,9 @@ on: - 'windows/**' - 'man/**' +permissions: + contents: read + jobs: linux: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 025336109..fa42816ad 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -4,6 +4,9 @@ on: schedule: - cron: '53 7 * * *' +permissions: + contents: read + jobs: linux: