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

Argument error after new release of v1.3.0 #87

Open
diegosperes-deliveroo opened this issue Nov 2, 2022 · 1 comment
Open

Argument error after new release of v1.3.0 #87

diegosperes-deliveroo opened this issue Nov 2, 2022 · 1 comment

Comments

@diegosperes-deliveroo
Copy link

After the new release of tfsec-pr-commenter-action (v1.3.0) PR Check is broke with the following error:

tfsec --out=results.json --format=json --soft-fail '' ./infrastructure
Usage:
  tfsec [directory] [flags]

Flags:
      --code-theme string            Theme for annotated code. Either 'light' or 'dark'. (default "dark")
      --concise-output               Reduce the amount of output and no statistics
      --config-file string           Config file to use during run
      --config-file-url string       Config file to download from a remote location. Must be json or yaml
      --custom-check-dir string      Explicitly set the custom checks dir location
      --custom-check-url string      Download a custom check file from a remote location. Must be json or yaml
      --debug                        Enable debug logging (same as verbose)
  -G, --disable-grouping             Disable grouping of similar results
  -e, --exclude string               Provide comma-separated list of rule IDs to exclude from run.
      --exclude-downloaded-modules   Remove results for downloaded modules in .terraform folder
  -E, --exclude-ignores string       Provide comma-separated list of ignored rule to exclude from run.
      --exclude-path strings         Folder path to exclude, can be used multiple times and evaluated in order of specification
      --filter-results string        Filter results to return specific checks only (supports comma-delimited input).
      --force-all-dirs               Don't search for tf files, include everything below provided directory.
  -f, --format string                Select output format: lovely, json, csv, checkstyle, junit, sarif, text, markdown, html, gif. To use multiple formats, separate with a comma and specify a base output filename with --out. A file will be written for each type. The first format will additionally be written stdout. (default "lovely")
  -h, --help                         help for tfsec
      --ignore-hcl-errors            Do not report an error if an HCL parse error is encountered
      --include-ignored              Include ignored checks in the result output
      --include-passed               Include passed checks in the result output
      --migrate-ignores              Migrate ignore codes to the new ID structure
  -m, --minimum-severity string      The minimum severity to report. One of CRITICAL, HIGH, MEDIUM, LOW.
      --no-code                      Don't include the code snippets in the output.
      --no-color                     Disable colored output (American style!)
      --no-colour                    Disable coloured output
      --no-ignores                   Do not apply any ignore rules - normally ignored checks will fail
      --no-module-downloads          Do not download remote modules.
  -O, --out string                   Set output file. This filename will have a format descriptor appended if multiple formats are specified with --format
      --print-rego-input             Print a JSON representation of the input supplied to rego policies.
      --rego-only                    Run rego policies exclusively.
      --rego-policy-dir string       Directory to load rego policies from (recursively).
      --run-statistics               View statistics table of current findings.
      --single-thread                Run checks using a single thread
  -s, --soft-fail                    Runs checks but suppresses error code
      --tfvars-file strings          Path to .tfvars file, can be used multiple times and evaluated in order of specification
      --update                       Update to latest version
      --var-file strings             Path to .tfvars file, can be used multiple times and evaluated in order of specification (same functionality as --tfvars-file but consistent with Terraform)
      --verbose                      Enable verbose logging (same as debug)
  -v, --version                      Show version information and exit
  -w, --workspace string             Specify a workspace for ignore limits (default "default")

Error: accepts between 0 and 1 arg(s), received 2

The current workflow file is:

name: tfsec-pr-commenter
on:
  pull_request:
jobs:
  tfsec:
    name: tfsec PR commenter
    runs-on: ubuntu-latest

    steps:
      - name: Clone repo
        uses: actions/checkout@master

      - name: tfsec
        uses: aquasecurity/tfsec-pr-commenter-action@main
        with:
          working_directory: ./infrastructure
          github_token: ${{ secrets.GITHUB_TOKEN }}
@reedloden
Copy link
Contributor

Dupe of #85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants