Skip to content
Merged
24 changes: 24 additions & 0 deletions apply-configuration/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
Loading