From a8f153646667b8404fb8989415cabaf532d2170d Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 5 Nov 2024 13:35:31 +0900 Subject: [PATCH] Removing token from the checkout --- .github/workflows/build_artifacts.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build_artifacts.yml b/.github/workflows/build_artifacts.yml index b3d7c44..e2f6e89 100644 --- a/.github/workflows/build_artifacts.yml +++ b/.github/workflows/build_artifacts.yml @@ -22,11 +22,21 @@ jobs: runs-on: ubuntu-latest steps: + + - name: Generate a token for Rekku + if: ${{ github.repository == 'RetroDECK/RetroDECK' }} + id: generate-rekku-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ vars.REKKU_APP_ID }} + private-key: ${{ secrets.REKKU_PRIVATE_KEY }} + repositories: "RetroDECK,Cooker" + owner: "RetroDECK" + - name: Clone repo uses: actions/checkout@v3 with: submodules: 'true' - token: ${{ secrets.TRIGGER_BUILD_TOKEN }} - name: "Install dependencies" uses: ./.github/workflows/build_artifacts.yml @@ -88,16 +98,6 @@ jobs: id: branch_name run: echo "BRANCH_NAME=$(echo $GITHUB_REF | sed 's|refs/heads/||')" >> $GITHUB_ENV - - name: Generate a token for Rekku - if: ${{ github.repository == 'RetroDECK/RetroDECK' }} - id: generate-rekku-token - uses: actions/create-github-app-token@v1 - with: - app-id: ${{ vars.REKKU_APP_ID }} - private-key: ${{ secrets.REKKU_PRIVATE_KEY }} - repositories: "RetroDECK,Cooker" - owner: "RetroDECK" - - name: Publish the artifacts in a new release uses: ncipollo/release-action@v1 with: