From 11bb6afea882fcd487cebe8f14d3a8b530a14b81 Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Tue, 12 Nov 2024 03:23:44 -0700 Subject: [PATCH] export gh token to allow the github cli tool to be used in the workflow --- README.md | 3 ++- action.yml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d1ea13..1c25e6a 100644 --- a/README.md +++ b/README.md @@ -22,10 +22,11 @@ on: [push, pull_request] jobs: build: runs-on: ubuntu-latest + permissions: + pull-requests: write steps: - name: Checkout code uses: actions/checkout@v4 - - name: Run pkgcruft uses: pkgcraft/pkgcruft-action@main ``` diff --git a/action.yml b/action.yml index 55eabe8..3783370 100644 --- a/action.yml +++ b/action.yml @@ -60,6 +60,8 @@ runs: - name: Run pkgcruft action shell: bash + env: + GH_TOKEN: ${{ github.token }} run: pkgcruft-action - name: Save cache