-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
38 lines (35 loc) · 940 Bytes
/
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
35
36
37
38
name: "Aviator Signals"
description: "Upload the signals to Aviator."
branding:
color: yellow
icon: activity
runs:
using: "composite"
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install dependencies
run: pip install requests
shell: sh
- name: Run uploader
run: python $GITHUB_ACTION_PATH/action.py
shell: sh
env:
GITHUB_SHA: ${{ github.sha }}
REPO_NAME: ${{ github.repository }}
AVIATOR_API_TOKEN: ${{ inputs.aviator-api-token }}
INPUT_FORMAT: ${{ inputs.format }}
FILE_PATHS: ${{ inputs.file-paths }}
inputs:
aviator-api-token:
description: "The Aviator API token"
required: true
file-paths:
description: "The comma-separated glob paths to the input files"
required: true
format:
description: "The format of the signals ('sarif' or 'astgrep')"
required: false
default: "sarif"