-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (29 loc) · 1.05 KB
/
Inspector-Action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Inspector-Action
on:
schedule:
- cron: "30 0 * * *"
# Schedule Configuration From Github Actions.
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
push:
branches:
- main
jobs:
Kenna-Action:
runs-on: ubuntu-latest
steps:
- name: Checkout Toolkit Repo
uses: actions/checkout@v2
with:
repository: KennaPublicSamples/toolkit
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Install dependencies
run: bundle install --without development test
- name: Run Toolkit
run : exec bundle exec ruby toolkit.rb task=aws_inspector aws_access_key=${aws_access_key} aws_secret_key=${aws_secret_key} kenna_api_host=api.us.kennasecurity.com kenna_connector_id=164416 kenna_api_key=${kenna_api_key} -v
env:
aws_access_key=: "${{secrets.aws_access_key}}"
aws_secret_key=: "${{secrets.aws_secret_key}}"
kenna_api_key=: "${{secrets.kenna_api_key}}"