-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (30 loc) · 1.15 KB
/
Nozomi-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
33
34
name: Nozomi-Action
on:
schedule:
- cron: "50 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=nozomi nozomi_user=${nozomi_user} nozomi_password=${nozomi_password} nozomi_api_host=${nozomi_api_host} nozomi_page_size=500 kenna_api_host=api.us.kennasecurity.com kenna_connector_id=164420 kenna_api_key=${kenna_api_key} -v
env:
nozomi_api_host=: "${{secrets.nozomi_api_host}}"
nozomi_user=: "${{secrets.nozomi_user}}"
nozomi_password=: "${{secrets.nozomi_password}}"
kenna_api_key=: "${{secrets.kenna_api_key}}"