From a7a94190e3ec1271088f99075d9198c1042cb8fa Mon Sep 17 00:00:00 2001 From: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> Date: Tue, 28 Jan 2025 14:39:14 +0100 Subject: [PATCH] use pat --- .github/workflows/dry-run.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/dry-run.yml b/.github/workflows/dry-run.yml index 3b733ff..86401f9 100644 --- a/.github/workflows/dry-run.yml +++ b/.github/workflows/dry-run.yml @@ -16,18 +16,18 @@ jobs: with: persist-credentials: false - - name: Generate GitHub token - uses: actions/create-github-app-token@v1 - id: generate-token - with: - # GitHub App ID secret name - app-id: ${{ secrets.GH_APP_ID }} - # GitHub App private key secret name - private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} - # Set the owner, so the token can be used in all repositories - owner: ${{ github.repository_owner }} + # - name: Generate GitHub token + # uses: actions/create-github-app-token@v1 + # id: generate-token + # with: + # # GitHub App ID secret name + # app-id: ${{ secrets.GH_APP_ID }} + # # GitHub App private key secret name + # private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} + # # Set the owner, so the token can be used in all repositories + # owner: ${{ github.repository_owner }} - name: Dry run env: - GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} + GITHUB_TOKEN: ${{ secrets.GH_READ_ONLY_PAT }} run: cargo run -- --only-print-plan github