[PETOSS-829] Add codegen testing and replace linters#757
[PETOSS-829] Add codegen testing and replace linters#757the-chris-mitchell merged 53 commits intomasterfrom
Conversation
|
PETOSS-832 |
|
Thanks for raising an issue, a ticket has been created to track your request |
- Added .npmrc to force use of registry.npmjs.org - Regenerated package-lock.json with public registry URLs - Updated workflow to explicitly set registry for GitHub Actions - Added timeout to prevent hanging on npm install
… which the other work flow in the code gen repo cant handle
And remove commitlint
| runs-on: ubuntu-latest | ||
| name: MegaLinter Validation | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: MegaLinter | ||
| uses: oxsecurity/megalinter@v9 | ||
| env: | ||
| ENABLE_LINTERS: YAML_YAMLLINT,ACTION_ACTIONLINT,API_SPECTRAL | ||
| YAML_YAMLLINT_CONFIG_FILE: .yamllint.yml | ||
| API_SPECTRAL_FILTER_REGEX_INCLUDE: xero.*\.yaml | ||
| API_SPECTRAL_RULES_PATH: .spectral/ | ||
| APPLY_FIXES: none | ||
| LOG_LEVEL: INFO | ||
|
|
||
| codegen-validation: |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
The fix is to add an explicit permissions block to the linting job in .github/workflows/pr-validation.yml. Since the job only performs a lint using checked out code, it only needs read access to the repository contents. Therefore, a permissions block should be added at line 13 (immediately after name: MegaLinter Validation) with contents: read. No further privileges are needed; do not change existing functionality or any other steps. No new dependencies or imports are required.
| @@ -11,6 +11,8 @@ | ||
| linting: | ||
| runs-on: ubuntu-latest | ||
| name: MegaLinter Validation | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 |
5ae644f to
f1d9de5
Compare
… PETOSS-829-add-GHA-healthcheck
caa0208 to
70a0f90
Compare
34d2cf6 to
a56eb31
Compare
|
I Approve this Change, LGTM 🔥 |
|
🎉 This PR is included in version 9.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 9.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 9.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
Release Notes
Screenshots (if appropriate):
Types of Changes