Skip to content

Commit

Permalink
Revert "Add input for setting detect-secrets version (#58)" (#59)
Browse files Browse the repository at this point in the history
This reverts commit 1a35133.
  • Loading branch information
haya14busa authored Feb 15, 2024
1 parent 1a35133 commit 0e73b2b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand All @@ -46,8 +43,6 @@ inputs:
runs:
using: docker
image: Dockerfile
env:
INPUT_DETECT_SECRETS_VERSION: ${{ inputs.detect_secrets_version }}
branding:
icon: shield
color: green

0 comments on commit 0e73b2b

Please sign in to comment.