From 59bcc03cdcab12e517a514403295a3056acd1ffa Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sun, 17 Mar 2024 02:21:09 +0100 Subject: [PATCH] alternative --- .github/workflows/vale-action.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/vale-action.yml b/.github/workflows/vale-action.yml index 61a9e62d2e3570..b54c8147b03e11 100644 --- a/.github/workflows/vale-action.yml +++ b/.github/workflows/vale-action.yml @@ -12,12 +12,17 @@ jobs: contents: read pull-requests: write steps: + - name: Log + env: + RUNNER_CONTEXT: ${{vars.VALE_TOKEN}} + FOO: ${{vars.FOO}} + run: 'echo "$RUNNER_CONTEXT" "$FOO"' + - id: token + name: "Get VALE_TOKEN" + run: 'VALE_TOKEN=${{vars.VALE_TOKEN}} >> $GITHUB_OUTPUT' - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: errata-ai/vale-action@38bf078c328061f59879b347ca344a718a736018 # v2.1.0 with: fail_on_error: true reporter: github-pr-review - env: - # Required, set by GitHub actions automatically: - # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + token: ${{vars.VALE_TOKEN}}