From 77e2d01c10a5a425c8c38135452bca8d0e1078a7 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Thu, 15 Feb 2024 09:54:40 +0900 Subject: [PATCH] Revert "Add input for setting detect-secrets version (#58)" This reverts commit 1a35133527b2622529315df9873af3dc098a7a1e. --- .github/workflows/reviewdog.yml | 12 ------------ Dockerfile | 9 ++------- action.yml | 5 ----- 3 files changed, 2 insertions(+), 24 deletions(-) diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index c49585c..7e577f2 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -15,15 +15,3 @@ jobs: github_token: ${{ secrets.github_token }} reporter: github-pr-review workdir: testdata - - detect-secrets-version: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: detect-secrets - uses: ./ - with: - detect_secrets_version: "1.3.0" - github_token: ${{ secrets.github_token }} - reporter: github-pr-review - workdir: testdata diff --git a/Dockerfile b/Dockerfile index 52554b5..ea6dcaa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,13 +7,8 @@ RUN set -eux \ && apt-get install -y --no-install-recommends \ git \ wget \ - && wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION} - -RUN if [ -n "$INPUT_DETECT_SECRETS_VERSION" ]; then \ - pip install detect-secrets[word_list]=="$INPUT_DETECT_SECRETS_VERSION"; \ - else \ - pip install detect-secrets[word_list]; \ - fi + && wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION} \ + && pip install detect-secrets[word_list] COPY baseline2rdf.py /usr/local/bin/baseline2rdf COPY entrypoint.sh /entrypoint.sh diff --git a/action.yml b/action.yml index ddb6d76..120d5a3 100644 --- a/action.yml +++ b/action.yml @@ -31,9 +31,6 @@ inputs: detect_secrets_flags: description: Flags and args of detect-secrets command. The default is '--all-files --force-use-all-plugins'. default: --all-files --force-use-all-plugins - detect_secrets_version: - description: The detect-secrets version to install. By default will install the latest version. - default: "" baseline_path: description: The baseline path to update. If not provided, a new baseline will be created. default: "" @@ -46,8 +43,6 @@ inputs: runs: using: docker image: Dockerfile - env: - INPUT_DETECT_SECRETS_VERSION: ${{ inputs.detect_secrets_version }} branding: icon: shield color: green