Skip to content

Add args to github action #34

@JafoFett

Description

@JafoFett

I'm trying to add a tfvars file to the github action but can't seem to get it to work, any help would be appreciated. Here is what I have:

jobs:

tfsec:
name: tfsec
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Terraform security scan
uses: triat/terraform-security-scan@v2.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: --tfvars-file dev.tfvars

Which results in:
Warning: A tfvars file was found but not automatically used.
Did you mean to specify the --tf-vars flag?

And, I have replaced --tfvars-file with --tf-vars but still didn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions