generated from camaraproject/Template_API_Repository
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update camara-language-avoid-telco.js Header comment added * Update camara-reserved-words.js Header comment added * Update camara-security-no-secrets-in-path-or-query-parameters.js Header comment added * Update .spectral.yml Comment header added * Update .yamllint.yaml Header comment added * Delete artifacts/linting_rules/javalint.xml By default Java is not used in API specification repositories * Update megalinter.yml Header comment extended * Update .yamllint.yaml Changes in default configuration of yamllint * Update .spectral.yml oas3-operation-security-defined rule was disabled as it do not fully support OpenIdConnect flow * Update megalinter.yml Megalinter configuration change, disable not needed linters * Update megalinter.yml Disable running spectral outside of Megalinter * Create spectral_oas_lint.yml workflow configuration to manually run CAMARA OAS rules * Update spectral_oas_lint.yml Simplification * Update .spectral.yml New functions added/modified (more granularity for descriptions) * Update .spectral.yml typo * Update API-linting-Implementation-Guideline.md Modification and reshuffling of the how-to file * Update spectral_oas_lint.yml * Update .spectral.yml Changed camara-discriminator-use severity to: hint * Update .spectral.yml oas3-server-variables commented out * Update megalinter.yml Actions checkout@v4 upload-artifact@v4
- Loading branch information
Showing
9 changed files
with
154 additions
and
421 deletions.
There are no files selected for viewing
This file contains 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
36 changes: 36 additions & 0 deletions
36
artifacts/linting_rules/.github/workflows/spectral_oas_lint.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
# CAMARA Project - workflow configuration to manually run CAMARA OAS rules | ||
# see https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow | ||
# 31.01.2024 - initial version | ||
|
||
name: Spectral manual run | ||
|
||
on: workflow_dispatch | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: Spectral linting | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# Give the default GITHUB_TOKEN write permission to commit and push, comment issues & post new PR | ||
# Remove the ones you do not need | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
# Git Checkout | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances | ||
- name: Install Spectral | ||
run: npm install -g @stoplight/spectral | ||
- name: Install Spectral functions | ||
run: npm install -g @stoplight/spectral-functions | ||
- name: Run Spectral linting | ||
run: spectral lint code/API_definitions/*.yaml --verbose --ruleset .spectral.yml |
This file contains 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
This file contains 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
Oops, something went wrong.