Skip to content

Commit

Permalink
refactor: adjusted examples
Browse files Browse the repository at this point in the history
  • Loading branch information
graza-io committed Aug 22, 2023
1 parent b7a2fb3 commit 0741e73
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 51 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ inputs:
description: 'Space separated args to add to the "steampipe check" command.'
required: false
snapshot-type:
description: If set to 'public' or 'private' will create a snapshot on Turbot Pipes *requires input 'pipes-token'*, other values or not being set will not.
description: If set to 'public' or 'private' will create a snapshot on Turbot Pipes *requires input 'pipes-token'*.
required: false
pipes-token:
description: The Turbot Pipes token used to save snapshots, required if 'snapshot-type' is set.
Expand Down
47 changes: 0 additions & 47 deletions examples/workflow/example-manual-annotations-workflow.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
paths = [ "./examples/terraform/aws/**/*.tf" ]
}
- name: Steampipe Checks
uses: ./
uses: turbot/[email protected]
with:
mod-url: https://github.com/turbot/steampipe-mod-terraform-aws-compliance
mod-branch: ${{ inputs.mod_branch }}
Expand Down
28 changes: 28 additions & 0 deletions examples/workflow/pull_request_with_annotations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Pull Request Annotation Example
on:
pull_request:
types:
- opened
branches:
- 'main'

jobs:
compliance_with_annotations:
runs-on: ubuntu-latest
steps:
- name: Repository Checkout
uses: actions/checkout@v3
- name: Steampipe Setup
uses: turbot/[email protected]
with:
plugin-connections: |
connection "tf" {
plugin = "terraform"
paths = [ "./examples/terraform/aws/**/*.tf" ]
}
- name: Steampipe Checks
uses: turbot/[email protected]
with:
mod-url: https://github.com/turbot/steampipe-mod-terraform-aws-compliance
create-annotations: true
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion examples/workflow/terraform_compliance_steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
benchmark.ecs
- name: Run Steampipe Terraform GCP Compliance
uses: turbot/steampipe-action-check
uses: turbot/steampipe-action-check@v0.0.1
with:
mod-url: 'https://github.com/turbot/steampipe-mod-terraform-gcp-compliance'
checks: benchmark.compute
2 changes: 1 addition & 1 deletion examples/workflow/terraform_compliance_strategy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
}
- name: Run Steampipe Terraform Compliance - ${{ matrix.cloud }}
uses: turbot/steampipe-action-check
uses: turbot/steampipe-action-check@v0.0.1
with:
mod-url: 'https://github.com/turbot/steampipe-mod-terraform-${{ matrix.cloud }}-compliance'
additional-args: '--search-path-prefix=${{ matrix.search_path }}'

0 comments on commit 0741e73

Please sign in to comment.