chore(deps): update appvia/appvia-cicd-workflows digest to b338cd9 #739
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Workflow Validation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - ".github/**" | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - ".github/**" | |
| permissions: | |
| contents: read | |
| jobs: | |
| github-changes: | |
| name: Validate GitHub Workflows | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| - name: Validate YAML Syntax | |
| run: | | |
| echo "Validating GitHub workflow files..." | |
| find .github/workflows -name "*.yml" -o -name "*.yaml" | while read -r file; do | |
| echo "Validating $file" | |
| # Basic YAML validation | |
| python3 -c "import yaml; yaml.safe_load(open('$file'))" || exit 1 | |
| done | |
| echo "✓ All GitHub workflow files are valid" | |
| - name: Check Workflow Syntax | |
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 | |
| with: | |
| script: | | |
| console.log('GitHub workflow files have been validated'); | |
| console.log('No Terragrunt pipeline needed for .github changes'); |