From 68116af212866bc61c913f487ba83abed2a1d6c0 Mon Sep 17 00:00:00 2001 From: rickstaa Date: Sun, 10 Jan 2021 13:49:08 +0100 Subject: [PATCH 01/32] :memo: Updates action version in the readme.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f9b80b7..0f2a80d 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ jobs: with: python-version: "3.8" - name: flake8 Lint - uses: reviewdog/action-flake8@v2 + uses: reviewdog/action-flake8@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} ``` From e5fd9987b3c15c0668f993af7a858ec73e59f9a7 Mon Sep 17 00:00:00 2001 From: rickstaa Date: Sun, 10 Jan 2021 13:49:34 +0100 Subject: [PATCH 02/32] :memo: Updates CHANGELOG.md --- CHANGELOG.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36bbb3d..31ab6a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [v3.0](https://github.com/reviewdog/action-flake8/compare/v3...v3.0) + +> 10 January 2021 + +#### [v3](https://github.com/reviewdog/action-flake8/compare/v3.0.0...v3) + +> 10 January 2021 + +### [v3.0.0](https://github.com/reviewdog/action-flake8/compare/v2.6.5...v3.0.0) + +> 10 January 2021 + +- :green_heart: Fix release action [`#27`](https://github.com/reviewdog/action-flake8/pull/27) +- :boom: Replaces javascript action with composite action [`#24`](https://github.com/reviewdog/action-flake8/pull/24) +- :memo: Updates changelog [`04a28e5`](https://github.com/reviewdog/action-flake8/commit/04a28e5efca5c5f8275e9ec754346113619584e4) + #### [v2.6.5](https://github.com/reviewdog/action-flake8/compare/v2.6.4...v2.6.5) > 8 January 2021 From d7d39bb6131a50540670bedbe474b06947e0ea59 Mon Sep 17 00:00:00 2001 From: rickstaa Date: Wed, 7 Jul 2021 13:27:35 +0200 Subject: [PATCH 03/32] :pushpin: Changes reviewdog for nightly to stable Since reviewdog [v12](https://github.com/reviewdog/reviewdog/releases/tag/v0.12.0) was released there is no need anymore to use the nightly branch. This commit, therefore, reverts back to using the stable branch. --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 80e3297..732aac3 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,10 +7,10 @@ fi export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" -export REVIEWDOG_VERSION=v0.11.0-nightly20210104+207b245 +export REVIEWDOG_VERSION=v0.12.0 echo "[action-flake8] Installing reviewdog..." -wget -O - -q https://raw.githubusercontent.com/reviewdog/nightly/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" +wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" if [[ "$(which flake8)" == "" ]]; then echo "[action-flake8] Installing flake8 package..." From c5c40fa7622ed9c7dd5e6494dddb3250c3efd852 Mon Sep 17 00:00:00 2001 From: rickstaa Date: Wed, 7 Jul 2021 13:33:55 +0200 Subject: [PATCH 04/32] :green_heart: Fixes github actions --- .github/workflows/depup.yml | 5 ++--- .github/workflows/test.yml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/depup.yml b/.github/workflows/depup.yml index b825e23..a7eb727 100644 --- a/.github/workflows/depup.yml +++ b/.github/workflows/depup.yml @@ -25,9 +25,8 @@ jobs: title: "chore(deps): update reviewdog to ${{ steps.depup.outputs.latest }}" commit-message: "chore(deps): update reviewdog to ${{ steps.depup.outputs.latest }}" body: | - Update reviewdog to [v${{ steps.depup.outputs.latest }}](https://github.com/reviewdog/reviewdog/releases/tag/v${{ steps.depup.outputs.latest }}) - Compare [v${{ steps.depup.outputs.current }}...v${{ steps.depup.outputs.latest }}](https://github.com/reviewdog/reviewdog/compare/v${{ steps.depup.outputs.current }}...v${{ steps.depup.outputs.latest }}) - + Update reviewdog to [v${{ steps.depup.outputs.latest }}](https://github.com/${{ steps.depup.outputs.repo }}/releases/tag/v${{ steps.depup.outputs.latest }}) + Compare [v${{ steps.depup.outputs.current }}...v${{ steps.depup.outputs.latest }}](https://github.com/${{ steps.depup.outputs.repo }}/compare/v${{ steps.depup.outputs.current }}...v${{ steps.depup.outputs.latest }}) This PR is auto generated by [depup workflow](https://github.com/${{ github.repository }}/actions?query=workflow%3Adepup). branch: depup/reviewdog base: master diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eb61f25..8eb75f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: Test on: push: branches: - - main + - master pull_request: jobs: test-check: From 4f2f663dc30a62eb0ab3483c81eb54508ce1049b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 22 Jul 2021 15:18:17 +0200 Subject: [PATCH 05/32] chore(deps): update reviewdog to 0.13.0 (#29) Co-authored-by: review-dog --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 732aac3..fcc5679 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ fi export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" -export REVIEWDOG_VERSION=v0.12.0 +export REVIEWDOG_VERSION=v0.13.0 echo "[action-flake8] Installing reviewdog..." wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" From 49cfab000299623090ddea740bbe30178ef12247 Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Thu, 22 Jul 2021 15:51:22 +0200 Subject: [PATCH 06/32] :green_heart: Fixes gh actions branch error (#30) * :green_heart: Fixes gh actions branch error This commit changes the branch to master instead of main. This causes the actions to run correctly. * :green_heart: Removes hadolint from action This was done since this action doesn't contain a dockerfile. --- .github/workflows/release.yml | 2 +- .github/workflows/reviewdog.yml | 19 +------------------ 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 80d4698..dbbaf72 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: release on: push: branches: - - main + - master tags: - "v*.*.*" pull_request: diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 9ecc4cc..ef29bbb 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -2,7 +2,7 @@ name: reviewdog on: push: branches: - - main + - master pull_request: jobs: shellcheck: @@ -22,23 +22,6 @@ jobs: reporter: ${{ steps.reporter.outputs.value }} level: warning - hadolint: - name: runner / hadolint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: haya14busa/action-cond@v1 - id: reporter - with: - cond: ${{ github.event_name == 'pull_request' }} - if_true: "github-pr-review" - if_false: "github-check" - - uses: reviewdog/action-hadolint@v1 - with: - github_token: ${{ secrets.github_token }} - reporter: ${{ steps.reporter.outputs.value }} - level: warning - misspell: name: runner / misspell runs-on: ubuntu-latest From 0606f2d82d6acc33bcc45c16d484e38ffa2f2b94 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 09:07:04 +0100 Subject: [PATCH 07/32] chore(deps): update reviewdog to 0.14.0 (#34) Co-authored-by: review-dog --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index fcc5679..fa968d6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ fi export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" -export REVIEWDOG_VERSION=v0.13.0 +export REVIEWDOG_VERSION=v0.14.0 echo "[action-flake8] Installing reviewdog..." wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" From 29b3cb2cb65b42f0d6bf5597a5fe6d610f376328 Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Mon, 14 Feb 2022 22:17:41 +0100 Subject: [PATCH 08/32] ci: replace 'create-release action' with gh cli (#33) * ci: replace 'create-release action' with gh cli This commit replaces the [create-release action](https://github.com/actions/create-release) since this action was deprecated. * ci(release): add script injection attack protection --- .github/workflows/release.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dbbaf72..9f6daf9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,18 +37,15 @@ jobs: if_true: ${{ github.ref }} if_false: ${{ steps.bumpr.outputs.next_version }} - # Create release. - - uses: actions/create-release@v1 - if: "steps.tag.outputs.value != ''" + # Create release + - if: "steps.tag.outputs.value != ''" env: + TAG_NAME: ${{ steps.tag.outputs.value }} + BODY: ${{ steps.bumpr.outputs.message }} # This token is provided by Actions, you do not need to create your own token GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.tag.outputs.value }} - release_name: Release ${{ steps.tag.outputs.value }} - body: ${{ steps.bumpr.outputs.message }} - draft: false - prerelease: false + run: | + gh release create "${TAG_NAME}" -t "Release ${TAG_NAME}" --notes "${BODY}" release-check: if: github.event.action == 'labeled' From 93998c18c68a4ca5d8f2f60599690cd8518c206b Mon Sep 17 00:00:00 2001 From: review-dog Date: Thu, 21 Apr 2022 12:56:02 +0000 Subject: [PATCH 09/32] chore(deps): update reviewdog to 0.14.1 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index fa968d6..eda7a2f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ fi export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" -export REVIEWDOG_VERSION=v0.14.0 +export REVIEWDOG_VERSION=v0.14.1 echo "[action-flake8] Installing reviewdog..." wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" From 7e6551eb7cce3f3e95dd58466a759a59e4ec05c0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 9 May 2022 17:20:38 +0200 Subject: [PATCH 10/32] chore(deps): update reviewdog to 0.14.0 (#38) Co-authored-by: rickstaa --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index eda7a2f..fa968d6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ fi export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" -export REVIEWDOG_VERSION=v0.14.1 +export REVIEWDOG_VERSION=v0.14.0 echo "[action-flake8] Installing reviewdog..." wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" From b6435e67f0cfda225b9e0c9283cfb7ea7c551bdb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 11 May 2022 10:09:33 +0200 Subject: [PATCH 11/32] chore(deps): update reviewdog to 0.14.1 (#39) Co-authored-by: rickstaa --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index fa968d6..eda7a2f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ fi export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" -export REVIEWDOG_VERSION=v0.14.0 +export REVIEWDOG_VERSION=v0.14.1 echo "[action-flake8] Installing reviewdog..." wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" From b16c6ad82f65b138429a4633e9ba836ecfb66b15 Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Tue, 14 Feb 2023 12:35:01 +0100 Subject: [PATCH 12/32] docs: add flake8 version and extension install instruction (#43) Co-authored-by: Florian Piesche --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0f2a80d..e6d711c 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,10 @@ jobs: uses: actions/setup-python@v2 with: python-version: "3.8" + # Install specific flake8 version (this step is not required. Default is "latest"). + - run: pip install flake8==6.0.0 + # Install flake8 extensions (this step is not required. Default is "None"). + - run: pip install flake8-docstrings flake8-simplify flake8-unused-arguments flake8-quotes - name: flake8 Lint uses: reviewdog/action-flake8@v3 with: From 9581fa1fdbd322822004dac55b875c8f5b3a71e6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 27 Mar 2023 10:32:08 +0200 Subject: [PATCH 13/32] Update actions/setup-python action to v4 (#45) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8eb75f8..7a1b5c8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} environment - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Python environment report @@ -36,7 +36,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} environment - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Python environment report @@ -58,7 +58,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} environment - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Python environment report From fe9cda430414b0ebe84c6419bd5e93f554012d38 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 27 Mar 2023 10:32:50 +0200 Subject: [PATCH 14/32] Update actions/checkout action to v3 (#44) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/depup.yml | 2 +- .github/workflows/release.yml | 4 ++-- .github/workflows/reviewdog.yml | 6 +++--- .github/workflows/test.yml | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/depup.yml b/.github/workflows/depup.yml index a7eb727..16072e6 100644 --- a/.github/workflows/depup.yml +++ b/.github/workflows/depup.yml @@ -10,7 +10,7 @@ jobs: reviewdog: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: reviewdog/action-depup@v1 id: depup with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f6daf9..d76dab7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: if: github.event.action != 'labeled' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # Bump version on merging Pull Requests with specific labels. # (bump:major,bump:minor,bump:patch) @@ -51,6 +51,6 @@ jobs: if: github.event.action == 'labeled' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Post bumpr status comment uses: haya14busa/action-bumpr@v1 diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index ef29bbb..d4941ec 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -9,7 +9,7 @@ jobs: name: runner / shellcheck runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: haya14busa/action-cond@v1 id: reporter with: @@ -26,7 +26,7 @@ jobs: name: runner / misspell runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: reviewdog/action-misspell@v1 with: github_token: ${{ secrets.github_token }} @@ -38,7 +38,7 @@ jobs: name: runner / alex runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: reviewdog/action-alex@v1 with: github_token: ${{ secrets.github_token }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7a1b5c8..de50950 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: matrix: python-version: [3.8] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} environment uses: actions/setup-python@v4 with: @@ -34,7 +34,7 @@ jobs: matrix: python-version: [3.8] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} environment uses: actions/setup-python@v4 with: @@ -56,7 +56,7 @@ jobs: matrix: python-version: [3.8] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} environment uses: actions/setup-python@v4 with: From 1212bd6f1c67830dcff438cf39522d4b58407e71 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 19 Jun 2023 13:30:56 +0200 Subject: [PATCH 15/32] chore(deps): update reviewdog to 0.14.2 (#47) Co-authored-by: review-dog --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index eda7a2f..6909bd2 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ fi export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" -export REVIEWDOG_VERSION=v0.14.1 +export REVIEWDOG_VERSION=v0.14.2 echo "[action-flake8] Installing reviewdog..." wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" From 147f70bdaeba70426e404b0a365d9f17a27bfc0e Mon Sep 17 00:00:00 2001 From: Susanne Salzmann Date: Fri, 4 Aug 2023 16:54:58 +0200 Subject: [PATCH 16/32] Add errorformat to README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e6d711c..3f236f5 100644 --- a/README.md +++ b/README.md @@ -82,4 +82,8 @@ Please note that some command-line arguments can be defined with other fields in #### `tool_name` -**Optional**. Tool name to use for reviewdog reporter. Defaults to `flake8`. +**Optional**. Tool name to use for reviewdog reporter. Defaults to `flake8`.. + +#### `error_format` + +**Optional**. Pre-defined error format `[flake8, pep8]`. Defaults to `flake8`. From 4a2d5f014b56b3d9b0bd7a4ab8208439f7a54f48 Mon Sep 17 00:00:00 2001 From: Susanne Salzmann Date: Fri, 4 Aug 2023 16:56:22 +0200 Subject: [PATCH 17/32] Adding errorformat to action.yml --- action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/action.yml b/action.yml index 47164b5..96bd05e 100644 --- a/action.yml +++ b/action.yml @@ -19,6 +19,10 @@ inputs: description: "Tool name to use for reviewdog reporter." required: false default: "flake8" + error_format: + description: "Pre-defined error format [flake8, pep8]" + required: false + default: "flake8" level: description: "Report level for reviewdog [info, warning, error]." required: false From fcbd6c0d2bfb75e80bba1a6d2c8ad5707a077cfa Mon Sep 17 00:00:00 2001 From: Susanne Salzmann Date: Fri, 4 Aug 2023 16:57:20 +0200 Subject: [PATCH 18/32] Add errorformat to entrypoint.sh --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6909bd2..4e86659 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -22,7 +22,7 @@ flake8 --version echo "[action-flake8] Checking python code with the flake8 linter and reviewdog..." exit_val="0" flake8 . ${INPUT_FLAKE8_ARGS} 2>&1 | # Removes ansi codes see https://github.com/reviewdog/errorformat/issues/51 - /tmp/reviewdog -f=flake8 \ + /tmp/reviewdog -f="${INPUT_ERROR_FORMAT}" \ -name="${INPUT_TOOL_NAME}" \ -reporter="${INPUT_REPORTER}" \ -filter-mode="${INPUT_FILTER_MODE}" \ From 04c96700ea6822acb02ba19b7e812f196b7107f9 Mon Sep 17 00:00:00 2001 From: Susanne Salzmann Date: Fri, 4 Aug 2023 16:58:12 +0200 Subject: [PATCH 19/32] Update action.yml --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 96bd05e..1f085b9 100644 --- a/action.yml +++ b/action.yml @@ -53,6 +53,7 @@ runs: INPUT_FLAKE8_ARGS: ${{ inputs.flake8_Args }} INPUT_GITHUB_TOKEN: ${{ inputs.github_token }} INPUT_TOOL_NAME: ${{ inputs.tool_name }} + INPUT_ERROR_FORMAT: ${{ inputs.error_format }} INPUT_LEVEL: ${{ inputs.level }} INPUT_REPORTER: ${{ inputs.reporter }} INPUT_FILTER_MODE: ${{ inputs.filter_mode }} From 51c2708ac3e9463b4d27d0ba7d9e3ded608a6ad3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 07:50:30 +0200 Subject: [PATCH 20/32] chore(deps): update reviewdog to 0.15.0 (#51) Co-authored-by: review-dog --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6909bd2..6fcfd93 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ fi export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" -export REVIEWDOG_VERSION=v0.14.2 +export REVIEWDOG_VERSION=v0.15.0 echo "[action-flake8] Installing reviewdog..." wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" From f3c62bc3cfe81dbb779bc368a9bcd8c3544425af Mon Sep 17 00:00:00 2001 From: review-dog Date: Tue, 4 Jun 2024 14:47:10 +0000 Subject: [PATCH 21/32] chore(deps): update reviewdog to 0.17.5 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6fcfd93..9d09653 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ fi export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" -export REVIEWDOG_VERSION=v0.15.0 +export REVIEWDOG_VERSION=v0.17.5 echo "[action-flake8] Installing reviewdog..." wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" From 4e815a47bfcb2ce0b903fbcba232be96084e6030 Mon Sep 17 00:00:00 2001 From: Masaya Suzuki Date: Sat, 8 Jun 2024 23:48:42 +0900 Subject: [PATCH 22/32] Update actions/checkout and peter-evans/create-pull-request --- .github/workflows/depup.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/reviewdog.yml | 6 +++--- .github/workflows/test.yml | 6 +++--- README.md | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/depup.yml b/.github/workflows/depup.yml index 16072e6..4ffbdaa 100644 --- a/.github/workflows/depup.yml +++ b/.github/workflows/depup.yml @@ -10,7 +10,7 @@ jobs: reviewdog: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: reviewdog/action-depup@v1 id: depup with: @@ -19,7 +19,7 @@ jobs: repo: reviewdog/reviewdog - name: Create Pull Request - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@v6 with: token: ${{ secrets.GITHUB_TOKEN }} title: "chore(deps): update reviewdog to ${{ steps.depup.outputs.latest }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d76dab7..39a7526 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: if: github.event.action != 'labeled' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Bump version on merging Pull Requests with specific labels. # (bump:major,bump:minor,bump:patch) @@ -51,6 +51,6 @@ jobs: if: github.event.action == 'labeled' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Post bumpr status comment uses: haya14busa/action-bumpr@v1 diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index d4941ec..247c1bc 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -9,7 +9,7 @@ jobs: name: runner / shellcheck runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: haya14busa/action-cond@v1 id: reporter with: @@ -26,7 +26,7 @@ jobs: name: runner / misspell runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: reviewdog/action-misspell@v1 with: github_token: ${{ secrets.github_token }} @@ -38,7 +38,7 @@ jobs: name: runner / alex runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: reviewdog/action-alex@v1 with: github_token: ${{ secrets.github_token }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index de50950..3a8a241 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: matrix: python-version: [3.8] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} environment uses: actions/setup-python@v4 with: @@ -34,7 +34,7 @@ jobs: matrix: python-version: [3.8] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} environment uses: actions/setup-python@v4 with: @@ -56,7 +56,7 @@ jobs: matrix: python-version: [3.8] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} environment uses: actions/setup-python@v4 with: diff --git a/README.md b/README.md index 3f236f5..c3f2370 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ jobs: name: Lint steps: - name: Check out source repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Python environment uses: actions/setup-python@v2 with: From 4b055c3eaed4f84b30142f9dfc13630cbb36fdb5 Mon Sep 17 00:00:00 2001 From: Masaya Suzuki Date: Sat, 8 Jun 2024 23:52:45 +0900 Subject: [PATCH 23/32] Update actions/setup-python --- .github/workflows/test.yml | 6 +++--- README.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3a8a241..1dd8598 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} environment - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Python environment report @@ -36,7 +36,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} environment - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Python environment report @@ -58,7 +58,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} environment - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Python environment report diff --git a/README.md b/README.md index c3f2370..49a6873 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ jobs: - name: Check out source repository uses: actions/checkout@v4 - name: Set up Python environment - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: "3.8" # Install specific flake8 version (this step is not required. Default is "latest"). From 58640636f863ec2c1b00fc366bedfa150ee2484d Mon Sep 17 00:00:00 2001 From: review-dog <22892449+review-dog@users.noreply.github.com> Date: Sat, 22 Jun 2024 13:09:51 +0000 Subject: [PATCH 24/32] chore(deps): update reviewdog to 0.18.1 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index c72b1ee..2a1f498 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ fi export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" -export REVIEWDOG_VERSION=v0.17.5 +export REVIEWDOG_VERSION=v0.18.1 echo "[action-flake8] Installing reviewdog..." wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" From 3bea7f3095e48101c51387e75da330c7e1bdbc3b Mon Sep 17 00:00:00 2001 From: review-dog <22892449+review-dog@users.noreply.github.com> Date: Sat, 6 Jul 2024 23:54:03 +0000 Subject: [PATCH 25/32] chore(deps): update reviewdog to 0.19.0 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 2a1f498..843f51f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ fi export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" -export REVIEWDOG_VERSION=v0.18.1 +export REVIEWDOG_VERSION=v0.19.0 echo "[action-flake8] Installing reviewdog..." wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" From 82694d0f9b8bf54be15292204db611e5b42f5700 Mon Sep 17 00:00:00 2001 From: review-dog <22892449+review-dog@users.noreply.github.com> Date: Sun, 14 Jul 2024 12:05:20 +0000 Subject: [PATCH 26/32] chore(deps): update reviewdog to 0.20.1 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 843f51f..3008b7f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ fi export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" -export REVIEWDOG_VERSION=v0.19.0 +export REVIEWDOG_VERSION=v0.20.1 echo "[action-flake8] Installing reviewdog..." wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" From 164949f7724f0141d911203f3beb878f19db2c65 Mon Sep 17 00:00:00 2001 From: Masaya Suzuki Date: Tue, 3 Dec 2024 07:13:28 +0900 Subject: [PATCH 27/32] Add fail_level and deduplicate fail_on_error --- README.md | 7 +++++++ action.yml | 10 +++++++++- entrypoint.sh | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 49a6873..8b4c7c7 100644 --- a/README.md +++ b/README.md @@ -72,8 +72,15 @@ Please note that some command-line arguments can be defined with other fields in **Optional**. Filtering mode for the reviewdog command `[added, diff_context, file, nofilter]`. Defaults to `added`. +### `fail_level` + +**Optional**. If set to `none`, always use exit code 0 for reviewdog. Otherwise, exit code 1 for reviewdog if it finds at least 1 issue with severity greater than or equal to the given level. +Possible values: [`none`, `any`, `info`, `warning`, `error`] +Default is `none`. + #### `fail_on_error` +Deprecated, use `fail_level` instead. **Optional**. Exit code for reviewdog when errors are found `[true, false]`. Defaults to `false`. #### `reviewdog_flags` diff --git a/action.yml b/action.yml index 1f085b9..e6332fa 100644 --- a/action.yml +++ b/action.yml @@ -35,8 +35,15 @@ inputs: description: "Filtering mode for the reviewdog command [added, diff_context, file, nofilter]." required: false default: "added" + fail_level: + description: | + If set to `none`, always use exit code 0 for reviewdog. Otherwise, exit code 1 for reviewdog if it finds at least 1 issue with severity greater than or equal to the given level. + Possible values: [none,any,info,warning,error] + Default is `none`. + default: 'none' fail_on_error: - description: "Exit code for reviewdog when errors are found [true, false]." + description: "Deprecated, use `fail_level` instead. Exit code for reviewdog when errors are found [true, false]." + deprecationMessage: Deprecated, use `fail_level` instead. required: false default: "false" reviewdog_flags: @@ -57,6 +64,7 @@ runs: INPUT_LEVEL: ${{ inputs.level }} INPUT_REPORTER: ${{ inputs.reporter }} INPUT_FILTER_MODE: ${{ inputs.filter_mode }} + INPUT_FAIL_LEVEL: ${{ inputs.fail_level }} INPUT_FAIL_ON_ERROR: ${{ inputs.fail_on_error }} INPUT_REVIEWDOG_FLAGS: ${{ inputs.reviewdog_flags }} diff --git a/entrypoint.sh b/entrypoint.sh index 3008b7f..5a63bf0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -26,6 +26,7 @@ flake8 . ${INPUT_FLAKE8_ARGS} 2>&1 | # Removes ansi codes see https://github.com -name="${INPUT_TOOL_NAME}" \ -reporter="${INPUT_REPORTER}" \ -filter-mode="${INPUT_FILTER_MODE}" \ + -fail-level="${INPUT_FAIL_LEVEL}" \ -fail-on-error="${INPUT_FAIL_ON_ERROR}" \ -level="${INPUT_LEVEL}" \ ${INPUT_REVIEWDOG_FLAGS} || exit_val="$?" From e15697ea5c35ba48abae7d392bdbe0c034c3f09f Mon Sep 17 00:00:00 2001 From: Masaya Suzuki <15100604+massongit@users.noreply.github.com> Date: Tue, 3 Dec 2024 07:16:33 +0900 Subject: [PATCH 28/32] Add disable SC2086 --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 5a63bf0..981ffb9 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -21,6 +21,7 @@ flake8 --version echo "[action-flake8] Checking python code with the flake8 linter and reviewdog..." exit_val="0" +# shellcheck disable=SC2086 flake8 . ${INPUT_FLAKE8_ARGS} 2>&1 | # Removes ansi codes see https://github.com/reviewdog/errorformat/issues/51 /tmp/reviewdog -f="${INPUT_ERROR_FORMAT}" \ -name="${INPUT_TOOL_NAME}" \ From 743d9444492520fa3f29cc3debe23138c90ae9d5 Mon Sep 17 00:00:00 2001 From: massongit <15100604+massongit@users.noreply.github.com> Date: Mon, 2 Dec 2024 22:18:52 +0000 Subject: [PATCH 29/32] chore(deps): update reviewdog to 0.20.2 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 3008b7f..1bf3887 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ fi export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" -export REVIEWDOG_VERSION=v0.20.1 +export REVIEWDOG_VERSION=v0.20.2 echo "[action-flake8] Installing reviewdog..." wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" From 0f5148b55905ad01ab30d94c8862d18629222a99 Mon Sep 17 00:00:00 2001 From: Masaya Suzuki Date: Tue, 3 Dec 2024 08:48:52 +0900 Subject: [PATCH 30/32] Add line break --- README.md | 3 ++- action.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8b4c7c7..edc979e 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,8 @@ Please note that some command-line arguments can be defined with other fields in ### `fail_level` -**Optional**. If set to `none`, always use exit code 0 for reviewdog. Otherwise, exit code 1 for reviewdog if it finds at least 1 issue with severity greater than or equal to the given level. +**Optional**. If set to `none`, always use exit code 0 for reviewdog. +Otherwise, exit code 1 for reviewdog if it finds at least 1 issue with severity greater than or equal to the given level. Possible values: [`none`, `any`, `info`, `warning`, `error`] Default is `none`. diff --git a/action.yml b/action.yml index e6332fa..2f5d3a5 100644 --- a/action.yml +++ b/action.yml @@ -37,7 +37,8 @@ inputs: default: "added" fail_level: description: | - If set to `none`, always use exit code 0 for reviewdog. Otherwise, exit code 1 for reviewdog if it finds at least 1 issue with severity greater than or equal to the given level. + If set to `none`, always use exit code 0 for reviewdog. + Otherwise, exit code 1 for reviewdog if it finds at least 1 issue with severity greater than or equal to the given level. Possible values: [none,any,info,warning,error] Default is `none`. default: 'none' From 6f7253890384a6ea3fc7c86acc0ff8dcf1d96420 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Tue, 18 Mar 2025 14:03:51 +0900 Subject: [PATCH 31/32] Pin GitHub Actions with commit SHA using pinact --- .github/workflows/depup.yml | 6 +++--- .github/workflows/release.yml | 12 ++++++------ .github/workflows/reviewdog.yml | 14 +++++++------- .github/workflows/test.yml | 12 ++++++------ 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/depup.yml b/.github/workflows/depup.yml index 4ffbdaa..283cc80 100644 --- a/.github/workflows/depup.yml +++ b/.github/workflows/depup.yml @@ -10,8 +10,8 @@ jobs: reviewdog: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: reviewdog/action-depup@v1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: reviewdog/action-depup@d6b40096afad49ca676145faaba7190df29a9807 # v1.6.3 id: depup with: file: entrypoint.sh @@ -19,7 +19,7 @@ jobs: repo: reviewdog/reviewdog - name: Create Pull Request - uses: peter-evans/create-pull-request@v6 + uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0 with: token: ${{ secrets.GITHUB_TOKEN }} title: "chore(deps): update reviewdog to ${{ steps.depup.outputs.latest }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 39a7526..22bfddc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,24 +14,24 @@ jobs: if: github.event.action != 'labeled' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 # Bump version on merging Pull Requests with specific labels. # (bump:major,bump:minor,bump:patch) - id: bumpr if: "!startsWith(github.ref, 'refs/tags/')" - uses: haya14busa/action-bumpr@v1 + uses: haya14busa/action-bumpr@78ab5a104d20896c9c9122c64221b3aecf1a8cbb # v1.10.0 # Update corresponding major and minor tag. # e.g. Update v1 and v1.2 when releasing v1.2.3 - - uses: haya14busa/action-update-semver@v1 + - uses: haya14busa/action-update-semver@fb48464b2438ae82cc78237be61afb4f461265a1 # v1.2.1 if: "!steps.bumpr.outputs.skip" with: tag: ${{ steps.bumpr.outputs.next_version }} # Get tag name. - id: tag - uses: haya14busa/action-cond@v1 + uses: haya14busa/action-cond@94f77f7a80cd666cb3155084e428254fea4281fd # v1.2.1 with: cond: "${{ startsWith(github.ref, 'refs/tags/') }}" if_true: ${{ github.ref }} @@ -51,6 +51,6 @@ jobs: if: github.event.action == 'labeled' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Post bumpr status comment - uses: haya14busa/action-bumpr@v1 + uses: haya14busa/action-bumpr@78ab5a104d20896c9c9122c64221b3aecf1a8cbb # v1.10.0 diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 247c1bc..53e540c 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -9,14 +9,14 @@ jobs: name: runner / shellcheck runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: haya14busa/action-cond@v1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: haya14busa/action-cond@94f77f7a80cd666cb3155084e428254fea4281fd # v1.2.1 id: reporter with: cond: ${{ github.event_name == 'pull_request' }} if_true: "github-pr-review" if_false: "github-check" - - uses: reviewdog/action-shellcheck@v1 + - uses: reviewdog/action-shellcheck@6e0e63d1750d02d761b3df0f2c5ba9f9ac4a9ed7 # v1.29.0 with: github_token: ${{ secrets.github_token }} reporter: ${{ steps.reporter.outputs.value }} @@ -26,8 +26,8 @@ jobs: name: runner / misspell runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: reviewdog/action-misspell@v1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: reviewdog/action-misspell@18ffb61effb93b47e332f185216be7e49592e7e1 # v1.26.1 with: github_token: ${{ secrets.github_token }} reporter: github-check @@ -38,8 +38,8 @@ jobs: name: runner / alex runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: reviewdog/action-alex@v1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: reviewdog/action-alex@d4ec03938e9ac6879fc91ef9a8c46777d0a35d44 # v1.15.1 with: github_token: ${{ secrets.github_token }} reporter: github-check diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1dd8598..28058f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,9 +12,9 @@ jobs: matrix: python-version: [3.8] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Python ${{ matrix.python-version }} environment - uses: actions/setup-python@v5 + uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 with: python-version: ${{ matrix.python-version }} - name: Python environment report @@ -34,9 +34,9 @@ jobs: matrix: python-version: [3.8] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Python ${{ matrix.python-version }} environment - uses: actions/setup-python@v5 + uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 with: python-version: ${{ matrix.python-version }} - name: Python environment report @@ -56,9 +56,9 @@ jobs: matrix: python-version: [3.8] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Python ${{ matrix.python-version }} environment - uses: actions/setup-python@v5 + uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 with: python-version: ${{ matrix.python-version }} - name: Python environment report From 535392cac472062c377ea0c6d0a7caa6f36ff9c7 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Tue, 18 Mar 2025 15:51:59 +0900 Subject: [PATCH 32/32] Pin reviewdog install script version with commit SHA --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e88b784..a95ab1a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,7 +10,7 @@ export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" export REVIEWDOG_VERSION=v0.20.2 echo "[action-flake8] Installing reviewdog..." -wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" +wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/fd59714416d6d9a1c0692d872e38e7f8448df4fc/install.sh | sh -s -- -b /tmp "${REVIEWDOG_VERSION}" if [[ "$(which flake8)" == "" ]]; then echo "[action-flake8] Installing flake8 package..."