Skip to content

Commit

Permalink
refactor(wip): updated test workflow, if conditionals on run steps
Browse files Browse the repository at this point in the history
  • Loading branch information
graza-io committed Jul 31, 2023
1 parent 25a36ec commit 9acf706
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:

- name: Setup steampipe
id: setup-steampipe
uses: turbot/setup-steampipe-action@setup-steampipe-js
uses: turbot/steampipe-action-setup
with:
connections: |
connection "awscfn" {
plugin = "awscfn"
paths = [ "./**/*.yml", "./**/*.json" ]
connection "aws_tf" {
plugin = "terraform"
paths = [ "./examples/terraform/aws/**/*.tf" ]
}
- name: Steampipe awscfn scan action - Checks input multiline
uses: turbot/steampipe-iac-action@infra-scan-docker
- name: Steampipe AWS TF scan action
uses: ./
with:
mod_url: -b initial-commit https://github.com/turbot/steampipe-mod-awscfn-aws-compliance.git
mod-url: https://github.com/turbot/steampipe-mod-terraform-aws-compliance
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ branding:
icon: shield
inputs:
mod-url:
description: "Mod URL to clone. Examples: https://github.com/turbot/steampipe-mod-aws-compliance."
description: "Mod URL to clone. Examples: https://github.com/turbot/steampipe-mod-aws-compliance"
required: true
mod-branch:
description: 'Mod branch or tag to clone. Defaults to "main". Examples: main, release/v0.7, 0.5, 1.0.'
Expand Down Expand Up @@ -92,14 +92,14 @@ runs:
exit 0
- name: Setup Node
if: inputs.create-annotations == true
uses: actions/setup-node@v3

- name: Annotate and summarize
if: inputs.create-annotations == true
shell: bash
run: |
if [ "${{ inputs.create-annotations }}" = "true" ]; then
node ${{ github.action_path }}/dist/index.js ${{ steps.get-checks.outputs.run_list }}
fi
node ${{ github.action_path }}/dist/index.js ${{ steps.get-checks.outputs.run_list }}
env:
GITHUB_TOKEN: ${{ inputs.github-token }}

Expand Down
1 change: 0 additions & 1 deletion examples/workflow/terraform_compliance_strategy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
search_path: "azure_tf"
- cloud: "gcp"
search_path: "gcp_tf"
# folder: [aws, azure, gcp]
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 9acf706

Please sign in to comment.