From 24847ff1f4c5f3b02ca42eeb07eaab174e0d3ee0 Mon Sep 17 00:00:00 2001 From: Sakamoto Noriaki Date: Mon, 23 Oct 2023 18:51:57 +0900 Subject: [PATCH] Harden automatic-rebase.yaml --- .github/workflows/automatic-rebase.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/automatic-rebase.yaml b/.github/workflows/automatic-rebase.yaml index 7a8cda2a..b0506eb0 100644 --- a/.github/workflows/automatic-rebase.yaml +++ b/.github/workflows/automatic-rebase.yaml @@ -32,11 +32,7 @@ jobs: - name: Report the failure uses: actions/github-script@v2 if: failure() - env: - HEAD_BRANCH: ${{ github.head_ref }} - GITHUB_ACTOR: ${{ github.actor }} with: - github-token: ${{ github.token }} script: | github.issues.createComment({ issue_number: context.issue.number, @@ -44,6 +40,6 @@ jobs: repo: context.repo.repo, body: ` **Rebase failed!** - See the [execution logs](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}). + See the [execution logs](https://github.com/${context.github.repository}/actions/runs/${context.github.run_id}). ` }) \ No newline at end of file