diff --git a/templates/github/.github/workflows/create-branch.yml.j2 b/templates/github/.github/workflows/create-branch.yml.j2 index 03e4aa8f..bcb558c7 100644 --- a/templates/github/.github/workflows/create-branch.yml.j2 +++ b/templates/github/.github/workflows/create-branch.yml.j2 @@ -20,6 +20,9 @@ jobs: strategy: fail-fast: false + permissions: + contents: write + steps: {{ checkout(depth=0, path=plugin_name) | indent(6) }} diff --git a/templates/github/.github/workflows/publish.yml.j2 b/templates/github/.github/workflows/publish.yml.j2 index 7d1d3462..c95d2834 100644 --- a/templates/github/.github/workflows/publish.yml.j2 +++ b/templates/github/.github/workflows/publish.yml.j2 @@ -139,6 +139,9 @@ jobs: {%- endif %} {%- endif %} + permissions: + contents: write + steps: - name: "Create release on GitHub" uses: "actions/github-script@v7"