-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathaction.yml
24 lines (23 loc) · 1 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
name: Applies Coding Standard configuration files in the repository
description: |
Installs Python and indexes the CodeQL Coding Standard configuration files in the repository
runs:
using: composite
steps:
- name: Install Python
id: cs-install-python
uses: actions/setup-python@v5
with:
python-version: 3.9
update-environment: false
- name: Install dependencies and process files
shell: bash
run: |
install_dir=$(dirname $(dirname "${{ steps.cs-install-python.outputs.python-path }}"))
if [[ -z "$LD_LIBRARY_PATH" ]]; then
export LD_LIBRARY_PATH="$install_dir/lib"
else
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$install_dir/lib"
fi
${{ steps.cs-install-python.outputs.python-path }} -m pip install -r ${GITHUB_ACTION_PATH}/../scripts/configuration/requirements.txt
${{ steps.cs-install-python.outputs.python-path }} ${GITHUB_ACTION_PATH}/../scripts/configuration/process_coding_standards_config.py