File 1487-gh-Fix-release-create-permissions.patch of Package erlang
From bf66d459c3a0717563a7c5bf0860974db09220dd Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Thu, 7 Mar 2024 12:43:03 +0100
Subject: [PATCH] gh: Fix release create permissions
---
.github/workflows/main.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 55bcf8b5a9..1e3f62c259 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -151,6 +151,9 @@ jobs:
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'erlang/otp'
+ ## Needed to create releases
+ permissions:
+ contents: write
steps:
## This step outputs the tag name and whether the tag is a release or patch
## (all releases have only two version identifiers, while patches have three
--
2.35.3