File 6088-gh-Use-github-app-token.patch of Package erlang
From 697065fba413e503220329580c651403b5ed3a3f Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Mon, 9 Oct 2023 11:20:10 +0200
Subject: [PATCH 1/2] gh: Use github-app-token
---
.github/workflows/actions-updater.yaml | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/actions-updater.yaml b/.github/workflows/actions-updater.yaml
index a6704141aa..89f79db52e 100644
--- a/.github/workflows/actions-updater.yaml
+++ b/.github/workflows/actions-updater.yaml
@@ -14,7 +14,14 @@ jobs:
steps:
- uses: actions/checkout@v4
+ - name: Generate token
+ id: generate_token
+ uses: tibdex/github-app-token@v1.8.0
+ with:
+ app_id: ${{ secrets.APP_ID }}
+ private_key: ${{ secrets.APP_PEM }}
+
- name: Run GitHub Actions Version Updater
uses: saadmk11/github-actions-version-updater@v0.8.1
with:
- token: ${{ secrets.ACTIONS_UPDATER_SECRET }}
+ token: ${{ steps.generate_token.outputs.token }}
--
2.35.3