From fdf2e09d761e8ee5bb5eac108666978a2a20ece8 Mon Sep 17 00:00:00 2001 From: StepSecurity Bot Date: Thu, 12 Oct 2023 23:57:32 +0000 Subject: [PATCH] [StepSecurity] ci: Harden GitHub Actions Signed-off-by: StepSecurity Bot --- .github/workflows/ci.yml | 3 +++ .github/workflows/code-scanning.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 023b9dff..dfdc9fca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,9 @@ name: Continuous Integration on: pull_request_target: {} +permissions: + contents: read + jobs: qa: permissions: diff --git a/.github/workflows/code-scanning.yml b/.github/workflows/code-scanning.yml index 5b47616c..4301c148 100644 --- a/.github/workflows/code-scanning.yml +++ b/.github/workflows/code-scanning.yml @@ -10,6 +10,9 @@ on: schedule: - cron: '35 8 * * 1-5' +permissions: + contents: read + jobs: dependency-review: name: Dependency Review