From beef4e2cde40cb9d4eb584e8fc23c2cc7a2b4181 Mon Sep 17 00:00:00 2001 From: StepSecurity Bot Date: Tue, 24 Oct 2023 18:05:30 +0000 Subject: [PATCH] test: limit permissions in github actions Automatic PR from app.stepsecurity.io (initiated by BlaineEXE) to limit permissions in github actions to only those needed. Signed-off-by: StepSecurity Bot --- .github/workflows/commitlint.yml | 6 ++++++ .github/workflows/docs-check.yml | 3 +++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index dc1f93734..216d12a25 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -16,8 +16,14 @@ concurrency: group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} cancel-in-progress: true +permissions: + contents: read + jobs: lint: + permissions: + contents: read # for actions/checkout to fetch code + pull-requests: read # for wagoid/commitlint-github-action to get commits in PR runs-on: ubuntu-20.04 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/docs-check.yml b/.github/workflows/docs-check.yml index e0bff0982..a99175d28 100644 --- a/.github/workflows/docs-check.yml +++ b/.github/workflows/docs-check.yml @@ -16,6 +16,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} cancel-in-progress: true +permissions: + contents: read + jobs: docs-check: name: docs-check