Skip to content

Commit

Permalink
FAI-9345: Update nock to address lodash vulns (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
eskrm committed Feb 13, 2024
1 parent c624abf commit a3cf589
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 48 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/pr.yml
Expand Up @@ -63,11 +63,18 @@ jobs:
- name: Show services
run: docker compose ps -a

# The init container is configured to restart 3 times on failure, but
# docker wait only uses the first exit code. This container's entrypoint
# always fails on its first attempt, but usually one retry is sufficient.
- name: Wait for init to complete
run: |
CONTAINER_EXIT_CODE=$(docker wait faros-community-edition-faros-init-1)
echo "Faros init container exit code was ${CONTAINER_EXIT_CODE}"
[[ $CONTAINER_EXIT_CODE -eq 0 ]]
uses: nick-fields/retry@v3
with:
max_attempts: 2
timeout_minutes: 5
command: |
CONTAINER_EXIT_CODE=$(docker wait faros-community-edition-faros-init-1)
echo "Faros init container exit code was ${CONTAINER_EXIT_CODE}"
[[ $CONTAINER_EXIT_CODE -eq 0 ]]
- name: Get Hasura Admin Secret
run: |
Expand Down
28 changes: 7 additions & 21 deletions cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/package.json
Expand Up @@ -66,7 +66,7 @@
"eslint": "^8.7.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"jest": "^27.5.1",
"nock": "^13.2.4",
"nock": "^13.5.1",
"pino-pretty": "^7.5.1",
"prettier": "2.5.1",
"ts-jest": "^27.1.3",
Expand Down
28 changes: 7 additions & 21 deletions init/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion init/package.json
Expand Up @@ -57,7 +57,7 @@
"eslint": "^8.7.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"jest": "^29.7.0",
"nock": "^13.2.4",
"nock": "^13.5.1",
"pino-pretty": "^7.5.1",
"prettier": "2.5.1",
"ts-jest": "^29.1.1",
Expand Down

0 comments on commit a3cf589

Please sign in to comment.