Skip to content

Commit

Permalink
update linter to ingore .tyk.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
Long Le authored and Long Le committed Sep 12, 2024
1 parent 65b69ce commit 026071b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tyk-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ jobs:
# Tyk API Linting / Validation using JQ Library
- name: Tyk Linter for Auth Mechanism Validation
env:
ENVIRONMENT: ${{ env.environment }}
ENV: ${{ env.environment }}
run: |
cd `./$ENVIRONMENT/apis`
for file in $(find . -name "*.json"); do
cd "./$ENV"
for file in $(find . -name "*.json" ! -name ".tyk.json"); do
# echo "Validating API/Policy definition $file"
# # Check if target_url is valid and not empty
# if jq -e '.proxy.target_url | length > 0' "$file" > /dev/null; then
Expand Down

0 comments on commit 026071b

Please sign in to comment.