From 325ef04c7f8a3b6f175462c00dc0bb55f556e290 Mon Sep 17 00:00:00 2001 From: Dan <8297864+D-K-P@users.noreply.github.com> Date: Mon, 19 May 2025 21:15:42 +0100 Subject: [PATCH] Potential fix for code scanning alert no. 6: Workflow does not contain permissions (#2076) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66cdbc0ab..1abfa223b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,10 @@ jobs: release: name: 🦋 Changesets Release runs-on: ubuntu-latest + permissions: + contents: write + packages: write + pull-requests: write if: github.repository == 'triggerdotdev/trigger.dev' outputs: published: ${{ steps.changesets.outputs.published }} @@ -93,6 +97,8 @@ jobs: publish: needs: release uses: ./.github/workflows/publish.yml + permissions: + contents: read secrets: inherit # if: needs.release.outputs.published == 'true' # disable automatic publishing for now