Skip to content

Commit 27bcf1b

Browse files
committed
Linting with locally installed spectral-cli
1 parent 13c6d46 commit 27bcf1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
results=$(jq --arg src "$src" '[.[] | select(.source == $src) | {rule: .code, severity: .severity}]' lint-result.json)
5252
5353
# Build a row JSON object with the extracted service name and the result array
54-
row=$(jq -n --arg service "$service" --argjson results "$results" '{json: {service: $service, result: $results}}')
54+
row=$(jq -n --arg service "$service" --argjson results "$results" '{json: {service_name: $service, lint_result: $results, spec_hash: "TODO", rules_hash: "TODO"}}')
5555
5656
# Append the row to our rows_array
5757
rows_array+=("$row")
@@ -79,7 +79,7 @@ jobs:
7979
shell: bash
8080
run: |
8181
curl --request POST \
82-
'https://bigquery.googleapis.com/bigquery/v2/projects/ent-apidata-dev/datasets/api_lint/tables/lint_result/insertAll' \
82+
'https://bigquery.googleapis.com/bigquery/v2/projects/ent-apidata-dev/datasets/api/tables/rest_api_lint/insertAll' \
8383
--header 'Authorization: Bearer ${{ steps.login-gcp.outputs.access_token }}' \
8484
--header 'Accept: application/json' \
8585
--header 'Content-Type: application/json' \

0 commit comments

Comments
 (0)