From 4bb2b9f97115a10cc32bfffebbd7d8575f2e0569 Mon Sep 17 00:00:00 2001 From: "Laurent Destailleur (aka Eldy)" Date: Sun, 8 Dec 2024 13:51:23 +0100 Subject: [PATCH] Test --- .github/workflows/pr-18.yaml | 8 ++++++-- .github/workflows/test.yaml | 38 +++++++++++++++++++++++++++++++++++- 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-18.yaml b/.github/workflows/pr-18.yaml index be36aa8b2465a..8a4c916809fb1 100644 --- a/.github/workflows/pr-18.yaml +++ b/.github/workflows/pr-18.yaml @@ -10,12 +10,15 @@ on: #permissions: write-all jobs: - run: + pr18: + permissions: + issues: write + pull-requests: write runs-on: ubuntu-latest env: - # GH_TOKEN: ${{ secrets.GH_TOKEN }} GH_TOKEN: ${{ github.token }} + GH_TOKENS: ${{ secrets.GH_TOKEN }} steps: - name: Checkout repository @@ -37,6 +40,7 @@ jobs: REVIEWER: "rycks" # Remplacez par le nom d'utilisateur GitHub du reviewer run: | echo "GH_TOKEN=$GH_TOKEN" + echo "GH_TOKENS=$GH_TOKENS" pr_number=$(jq --raw-output .number < $GITHUB_EVENT_PATH) gh pr edit $pr_number --add-reviewer "$REVIEWER" continue-on-error: true diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 062de38b3a362..a70171db729a8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -9,12 +9,48 @@ permissions: write-all jobs: testjob: + permissions: + issues: write + pull-requests: write runs-on: ubuntu-latest + env: + ENVGHT: ${{ secrets.GH_TOKEN }} + ENVGHU: ${{ github.token }} + VARAAA: ${{ vars.AAA }} + ENVAAA: ${{ env.AAA }} + SECBBB: ${{ secrets.BBB }} + VARREPORGCCC: ${{ vars.CCC }} steps: - name: Log run: | - echo "repo-token: ${{ secrets.GITHUB_TOKEN }}" + echo "repo-token: ${{secrets.GITHUB_TOKEN}}" echo "variable org: ${{vars.AAA}}" echo "env prg: ${{env.AAA}}" echo "secret org: ${{secrets.BBB}}" echo "variable repository of orga: ${{vars.CCC}}" + echo "ENVGHT: ${{ENVGHT}}" + echo "ENVGHT: $ENVGHT" + echo "ENVGHU: ${{ENVGHU}}" + echo "ENVGHU: $ENVGHU" + echo "VARAAA: ${{VARAAA}}" + echo "VARAAA: $VARAAA" + echo "ENVAAA: ${{VARAAA}}" + echo "ENVAAA: $VARAAA" + echo "VARREPORGCCC: ${{VARREPORGCCC}}" + echo "VARREPORGCCC: $VARREPORGCCC" + echo "ENVGHTWITH: ${{ENVGHTWITH}}" + echo "ENVGHT: $ENVGHTWITH" + echo "ENVGHUWITH: ${{ENVGHUWITH}}" + echo "ENVGHU: $ENVGHUWITH" + echo "VARAAAWITH: ${{VARAAAWITH}}" + echo "VARAAAWITH: $VARAAAWITH" + echo "SECBBBWITH: ${{SECBBBWITH}}" + echo "SECBBBWITH: $SECBBBWITH" + with: + ENVGHW: $GH_TOKEN + ENVGHTWITH: $ENVGHT + ENVGHUWITH: $ENVGHU + VARAAAWITH: $VARAAA + SECBBBWITH: $SECBBB + VARREPORGCCCWITH: $VARREPORGCCC +