From b6043bd60252723bdad359557e368263ef75b098 Mon Sep 17 00:00:00 2001 From: Jeremy Green Date: Mon, 16 Dec 2024 13:13:09 -0600 Subject: [PATCH] Fix for standardrb in GitHub Actions (#1814) The official workflow for starndard rb requires that permissions be passed down through workflows. For some reason this is unneccessary in the starter repo itself, but for downstream apps GHA sometimes complains about standard rb missing required permissions. This should make it more stable across apps. --- .github/workflows/ci-cd-pipeline-main.yml | 3 +++ .github/workflows/ci-cd-pipeline.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci-cd-pipeline-main.yml b/.github/workflows/ci-cd-pipeline-main.yml index 1cb47a3ec..11bbe70fd 100644 --- a/.github/workflows/ci-cd-pipeline-main.yml +++ b/.github/workflows/ci-cd-pipeline-main.yml @@ -20,6 +20,9 @@ jobs: name: 🔬 Standardrb uses: ./.github/workflows/_standardrb.yml secrets: inherit + permissions: + checks: write + contents: read db_schema: name: 🔎 DB Schema uses: ./.github/workflows/_database_schema_check.yml diff --git a/.github/workflows/ci-cd-pipeline.yml b/.github/workflows/ci-cd-pipeline.yml index 1d5647101..06aff6a3b 100644 --- a/.github/workflows/ci-cd-pipeline.yml +++ b/.github/workflows/ci-cd-pipeline.yml @@ -20,6 +20,9 @@ jobs: name: 🔬 Standardrb uses: ./.github/workflows/_standardrb.yml secrets: inherit + permissions: + checks: write + contents: read db_schema: name: 🔎 DB Schema uses: ./.github/workflows/_database_schema_check.yml