Skip to content

Add a GitHub Action for processing Coding Standards configuration files #774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Oct 22, 2024
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