-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: example-manual-annotations-workflow
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |