Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Add input for setting detect-secrets version" #59

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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