diff --git a/.github/workflows/add-scope-to-bet.yml b/.github/workflows/add-scope-to-bet.yml index abc16087e..499ad7c3a 100644 --- a/.github/workflows/add-scope-to-bet.yml +++ b/.github/workflows/add-scope-to-bet.yml @@ -16,7 +16,7 @@ jobs: id: parse uses: actions/github-script@v6 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.GH_TOKEN }} result-encoding: json script: | const regexSimple = /(Related\sto\s+(\S+)?#(\d+))/; @@ -78,7 +78,7 @@ jobs: uses: actions/github-script@v6 if: ${{ steps.parse.outputs.result }} with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.GH_TOKEN }} script: | const results = ${{ steps.parse.outputs.result }}; if (!results) { diff --git a/.github/workflows/check-adr.yml b/.github/workflows/check-adr.yml deleted file mode 100644 index e69de29bb..000000000 diff --git a/.github/workflows/lint-pr-adr.yml b/.github/workflows/lint-pr-adr.yml index 8d1c1ae7f..afb9179ff 100644 --- a/.github/workflows/lint-pr-adr.yml +++ b/.github/workflows/lint-pr-adr.yml @@ -18,7 +18,7 @@ jobs: id: lint_title_adr with: result-encoding: json - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.GH_TOKEN }} script: | const title = context.payload.pull_request.title; const labels = context.payload.pull_request.labels; @@ -59,7 +59,7 @@ jobs: # condition you can continue the execution with the populated error message. with: header: pr-title-lint-adr-error - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} message: | Hey there and thank you for opening this ADR pull request! 👋🏼 The ADR Pull request must follow this PR naming convention: @@ -70,7 +70,7 @@ jobs: - if: (fromJSON(steps.lint_title_adr.outputs.result).status == 'ok') uses: marocchino/sticky-pull-request-comment@v2 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} header: pr-title-lint-adr-error delete: true - if: (fromJSON(steps.lint_title_adr.outputs.result).status == 'ok') @@ -102,7 +102,7 @@ jobs: # condition you can continue the execution with the populated error message. with: header: pr-files-changed-adr-error - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} message: | Hey there and thank you for opening this ADR pull request! 👋🏼 The ADR Pull request must change only the ADR file that match ${{ fromJSON(steps.lint_title_adr.outputs.result).expectedFileMatch }} @@ -115,6 +115,6 @@ jobs: name: Delete comment fail changed uses: marocchino/sticky-pull-request-comment@v2 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} header: pr-files-changed-adr-error delete: true \ No newline at end of file