Merge branch 'main' into dependabot/github_actions/actions/setup-python-6

Signed-off-by: Jonathan Miller <230051081+jmiller-moko@users.noreply.github.com>
This commit is contained in:
2026-01-08 21:52:26 -06:00
committed by GitHub
7 changed files with 58 additions and 22 deletions

View File

@@ -19,7 +19,7 @@ permissions:
jobs: jobs:
validation: validation:
uses: mokoconsulting-tech/MokoStandards/.github/workflows/reusable-ci-validation.yml@v1 uses: mokoconsulting-tech/MokoStandards/.github/workflows/reusable-ci-validation.yml@main
with: with:
validation-scripts-path: 'scripts/validate' validation-scripts-path: 'scripts/validate'
secrets: inherit secrets: inherit

View File

@@ -47,7 +47,7 @@ jobs:
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Dependency Review - name: Dependency Review
uses: actions/dependency-review-action@v4 uses: actions/dependency-review-action@v4
@@ -77,22 +77,33 @@ jobs:
composer-audit: composer-audit:
name: Composer Audit name: Composer Audit
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: hashFiles('composer.json') != ''
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Check for composer.json
id: check-composer
run: |
if [ -f "composer.json" ]; then
echo "exists=true" >> $GITHUB_OUTPUT
else
echo "exists=false" >> $GITHUB_OUTPUT
fi
- name: Setup PHP - name: Setup PHP
if: steps.check-composer.outputs.exists == 'true'
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with:
php-version: '8.1' php-version: '8.1'
tools: composer:v2 tools: composer:v2
- name: Install Dependencies - name: Install Dependencies
if: steps.check-composer.outputs.exists == 'true'
run: composer install --no-interaction --prefer-dist run: composer install --no-interaction --prefer-dist
- name: Run Composer Audit - name: Run Composer Audit
if: steps.check-composer.outputs.exists == 'true'
run: | run: |
echo "### Composer Audit Results" >> $GITHUB_STEP_SUMMARY echo "### Composer Audit Results" >> $GITHUB_STEP_SUMMARY
@@ -105,29 +116,48 @@ jobs:
fi fi
- name: Check for Outdated Packages - name: Check for Outdated Packages
if: steps.check-composer.outputs.exists == 'true'
run: | run: |
echo "" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY
echo "### Outdated Composer Packages" >> $GITHUB_STEP_SUMMARY echo "### Outdated Composer Packages" >> $GITHUB_STEP_SUMMARY
composer outdated --direct || echo "All packages are up to date" >> $GITHUB_STEP_SUMMARY composer outdated --direct || echo "All packages are up to date" >> $GITHUB_STEP_SUMMARY
- name: Skip Composer Audit
if: steps.check-composer.outputs.exists == 'false'
run: |
echo "### Composer Audit Results" >> $GITHUB_STEP_SUMMARY
echo " No composer.json found - skipping Composer audit" >> $GITHUB_STEP_SUMMARY
python-safety: python-safety:
name: Python Safety Check name: Python Safety Check
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: hashFiles('requirements.txt', 'pyproject.toml', 'Pipfile') != ''
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Check for Python dependency files
id: check-python
run: |
if [ -f "requirements.txt" ] || [ -f "pyproject.toml" ] || [ -f "Pipfile" ]; then
echo "exists=true" >> $GITHUB_OUTPUT
else
echo "exists=false" >> $GITHUB_OUTPUT
fi
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v6 uses: actions/setup-python@v6
if: steps.check-python.outputs.exists == 'true'
uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: '3.11'
- name: Install Safety - name: Install Safety
if: steps.check-python.outputs.exists == 'true'
run: pip install safety run: pip install safety
- name: Run Safety Check - name: Run Safety Check
if: steps.check-python.outputs.exists == 'true'
run: | run: |
echo "### Python Safety Check Results" >> $GITHUB_STEP_SUMMARY echo "### Python Safety Check Results" >> $GITHUB_STEP_SUMMARY
@@ -145,6 +175,12 @@ jobs:
else else
echo " No requirements.txt found" >> $GITHUB_STEP_SUMMARY echo " No requirements.txt found" >> $GITHUB_STEP_SUMMARY
fi fi
- name: Skip Python Safety Check
if: steps.check-python.outputs.exists == 'false'
run: |
echo "### Python Safety Check Results" >> $GITHUB_STEP_SUMMARY
echo " No Python dependency files found - skipping Python safety check" >> $GITHUB_STEP_SUMMARY
license-check: license-check:
name: License Compliance Check name: License Compliance Check
@@ -152,7 +188,7 @@ jobs:
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Check License File - name: Check License File
run: | run: |

View File

@@ -17,7 +17,7 @@ permissions:
jobs: jobs:
testing: testing:
uses: mokoconsulting-tech/MokoStandards/.github/workflows/reusable-joomla-testing.yml@v1 uses: mokoconsulting-tech/MokoStandards/.github/workflows/reusable-joomla-testing.yml@main
with: with:
php-versions: '["8.0", "8.1", "8.2", "8.3"]' php-versions: '["8.0", "8.1", "8.2", "8.3"]'
joomla-versions: '["4.4", "5.0", "5.1"]' joomla-versions: '["4.4", "5.0", "5.1"]'

View File

@@ -19,7 +19,7 @@ permissions:
jobs: jobs:
quality: quality:
uses: mokoconsulting-tech/MokoStandards/.github/workflows/reusable-php-quality.yml@v1 uses: mokoconsulting-tech/MokoStandards/.github/workflows/reusable-php-quality.yml@main
with: with:
php-versions: '["8.0", "8.1", "8.2", "8.3"]' php-versions: '["8.0", "8.1", "8.2", "8.3"]'
php-extensions: 'mbstring, xml, ctype, json, zip' php-extensions: 'mbstring, xml, ctype, json, zip'

View File

@@ -51,7 +51,7 @@ jobs:
steps: steps:
- name: Checkout (best effort) - name: Checkout (best effort)
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
fetch-depth: 1 fetch-depth: 1
@@ -260,7 +260,7 @@ jobs:
steps: steps:
- name: Checkout source branch - name: Checkout source branch
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
ref: ${{ needs.guard.outputs.source_branch }} ref: ${{ needs.guard.outputs.source_branch }}
fetch-depth: 0 fetch-depth: 0
@@ -344,7 +344,7 @@ jobs:
steps: steps:
- name: Checkout promoted branch - name: Checkout promoted branch
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
ref: ${{ needs.guard.outputs.promoted_branch }} ref: ${{ needs.guard.outputs.promoted_branch }}
fetch-depth: 0 fetch-depth: 0
@@ -461,7 +461,7 @@ jobs:
steps: steps:
- name: Checkout promoted branch - name: Checkout promoted branch
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
ref: ${{ needs.guard.outputs.promoted_branch }} ref: ${{ needs.guard.outputs.promoted_branch }}
fetch-depth: 0 fetch-depth: 0
@@ -971,7 +971,7 @@ jobs:
steps: steps:
- name: Checkout main - name: Checkout main
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
ref: main ref: main
fetch-depth: 0 fetch-depth: 0
@@ -1039,7 +1039,7 @@ jobs:
steps: steps:
- name: Checkout tag - name: Checkout tag
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
ref: ${{ github.ref_name }} ref: ${{ github.ref_name }}
fetch-depth: 1 fetch-depth: 1

View File

@@ -54,7 +54,7 @@ jobs:
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Check Required Directories - name: Check Required Directories
run: | run: |
@@ -108,7 +108,7 @@ jobs:
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Validate README.md - name: Validate README.md
run: | run: |
@@ -172,7 +172,7 @@ jobs:
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Check for Tab Characters - name: Check for Tab Characters
run: | run: |
@@ -246,7 +246,7 @@ jobs:
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Check SPDX Headers - name: Check SPDX Headers
run: | run: |
@@ -304,7 +304,7 @@ jobs:
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -352,7 +352,7 @@ jobs:
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Check Required Workflows - name: Check Required Workflows
run: | run: |

View File

@@ -68,7 +68,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.ref_name }} ref: ${{ github.ref_name }}