mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
33 lines
807 B
YAML
33 lines
807 B
YAML
name: "Check implicit this warnings"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
paths:
|
|
- "**qlpack.yml"
|
|
branches:
|
|
- main
|
|
- "rc/*"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Check that implicit this warnings is enabled for all packs
|
|
shell: bash
|
|
run: |
|
|
EXIT_CODE=0
|
|
packs="$(find . -iname 'qlpack.yml')"
|
|
for pack_file in ${packs}; do
|
|
option="$(yq '.warnOnImplicitThis' ${pack_file})"
|
|
if [ "${option}" != "true" ]; then
|
|
echo "::error file=${pack_file}::warnOnImplicitThis property must be set to 'true' for pack ${pack_file}"
|
|
EXIT_CODE=1
|
|
fi
|
|
done
|
|
exit "${EXIT_CODE}"
|