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.
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.