-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
48 lines (39 loc) · 1.23 KB
/
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
39
40
41
42
43
44
45
46
47
48
name: 'codeql-summarize'
description: 'CodeQL Summarize Action'
inputs:
project:
description: "Project Repo (owner/name)"
projects:
description: "Project File with projects"
default: ./projects.json
language:
description: "Project Language"
format:
description: "Exporting Format (default: bundle)"
default: extensions
output:
description: "Output Directory"
default: ./
repository:
description: "GitHub Repository"
default: ${{ github.repository }}
token:
description: "GitHub Personal Access Token"
default: ${{ github.token }}
runs:
using: "composite"
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- shell: bash
run: |
export PYTHONPATH=${{ github.action_path }}:${{ github.action_path }}/vendor
python3 -m codeqlsummarize \
--input "${{ inputs.projects }}" \
--output "${{ inputs.output }}" \
--format "${{ inputs.format }}" \
--project-repo "${{ inputs.project }}" \
--language "${{ inputs.language }}" \
--github-token "${{ inputs.token }}" \
--github-repository "${{ inputs.repository }}"