From 7b6540a20d7f0b46db9d3167500c57c53a76f429 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 7 Oct 2024 11:15:30 +0200 Subject: [PATCH] Fix token usage --- .github/workflows/concretize-current-nightly.yaml | 10 ++++------ .github/workflows/concretize.yaml | 4 ++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/concretize-current-nightly.yaml b/.github/workflows/concretize-current-nightly.yaml index a9b782d2..b66d1574 100644 --- a/.github/workflows/concretize-current-nightly.yaml +++ b/.github/workflows/concretize-current-nightly.yaml @@ -20,12 +20,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: GH_TOKEN - shell: bash - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: echo "GITHUB_TOKEN=${GH_TOKEN}" >> $GITHUB_ENV - - name: Start container run: | name=$(echo "${{ github.event.repository.name }}" | tr '[:upper:]' '[:lower:]') @@ -39,8 +33,12 @@ jobs: fi - name: Setup environment and concretize + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + export GITHUB_TOKEN=${GH_TOKEN} + cat <<'EOF' > ${GITHUB_WORKSPACE}/script_container.sh set -e diff --git a/.github/workflows/concretize.yaml b/.github/workflows/concretize.yaml index 64f88286..1c59d478 100644 --- a/.github/workflows/concretize.yaml +++ b/.github/workflows/concretize.yaml @@ -30,8 +30,12 @@ jobs: fi - name: Setup environment and concretize + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + export GITHUB_TOKEN=${GH_TOKEN} + cat <<'EOF' > ${GITHUB_WORKSPACE}/script_container.sh set -e