Skip to content

Commit

Permalink
feat: example-manual-annotations-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
graza-io committed Aug 16, 2023
1 parent dc9f0d7 commit ccd698f
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/example-manual-annotations-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Manual Workflow Example
on:
workflow_dispatch:
inputs:
mod_branch:
description: Branch of the mod to use in checks
required: true
default: main
snapshot:
description: Upload a snapshot to Turbot Pipes, if set to a value other than 'none', secrets.PIPES_TOKEN must be configured on the repository.
required: false
default: 'none'
type: choice
options:
- none
- public
- private
annotations:
description: Apply annotations
required: false
default: false
type: boolean

jobs:
aws_tf_compliance:
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: ./
with:
mod-url: https://github.com/turbot/steampipe-mod-terraform-aws-compliance
mod-branch: ${{ inputs.mod_branch }}
snapshot-type: ${{ inputs.snapshot }}
pipes-token: ${{ secrets.PIPES_TOKEN }}
create-annotations: ${{ inputs.annotations }}

0 comments on commit ccd698f

Please sign in to comment.