-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:cisagov/XFD into dependabot/pip/…
…backend/worker/pipreqs-0.4.12
- Loading branch information
Showing
190 changed files
with
37,923 additions
and
35,907 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ nvd-dump | |
minio-data | ||
**/node_modules | ||
**/.cache | ||
./docs/node_modules | ||
./docs/node_modules |
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 |
---|---|---|
@@ -1,66 +1,60 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- directory: / | ||
# ignore: | ||
# # Managed by cisagov/ASM-Dashboard | ||
# - dependency-name: actions/cache | ||
# - dependency-name: actions/checkout | ||
# - dependency-name: actions/setup-go | ||
# - dependency-name: actions/setup-python | ||
# - dependency-name: crazy-max/ghaction-dump-context | ||
# - dependency-name: crazy-max/ghaction-github-labeler | ||
# - dependency-name: crazy-max/ghaction-github-status | ||
# - dependency-name: hashicorp/setup-terraform | ||
# - dependency-name: mxschmitt/action-tmate | ||
# - dependency-name: step-security/harden-runner | ||
package-ecosystem: github-actions | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
- directory: / | ||
package-ecosystem: terraform | ||
ignore: | ||
- dependency-name: '*' | ||
update-types: [version-update:semver-patch, version-update:semver-minor] | ||
# Managed by cisagov/skeleton-generic | ||
- dependency-name: actions/cache | ||
- dependency-name: actions/checkout | ||
- dependency-name: actions/setup-go | ||
- dependency-name: actions/setup-python | ||
- dependency-name: crazy-max/ghaction-dump-context | ||
- dependency-name: crazy-max/ghaction-github-labeler | ||
- dependency-name: crazy-max/ghaction-github-status | ||
- dependency-name: hashicorp/setup-terraform | ||
- dependency-name: mxschmitt/action-tmate | ||
- dependency-name: step-security/harden-runner | ||
- package-ecosystem: terraform | ||
directory: /infrastructure | ||
schedule: | ||
interval: weekly | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: 'weekly' | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-patch","version-update:semver-minor"] | ||
- package-ecosystem: "npm" | ||
directory: "/frontend" | ||
- package-ecosystem: npm | ||
directory: / | ||
schedule: | ||
interval: "weekly" | ||
interval: weekly | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-patch","version-update:semver-minor"] | ||
- package-ecosystem: "npm" | ||
directory: "/backend" | ||
- dependency-name: '*' | ||
update-types: [version-update:semver-patch, version-update:semver-minor] | ||
- package-ecosystem: npm | ||
directory: /frontend | ||
schedule: | ||
interval: "weekly" | ||
interval: weekly | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-patch","version-update:semver-minor"] | ||
- package-ecosystem: "pip" | ||
directory: "/backend/worker" | ||
- dependency-name: '*' | ||
update-types: [version-update:semver-patch, version-update:semver-minor] | ||
- package-ecosystem: npm | ||
directory: /backend | ||
schedule: | ||
interval: "weekly" | ||
interval: weekly | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-patch","version-update:semver-minor"] | ||
- package-ecosystem: 'docker' | ||
directory: '/' | ||
- dependency-name: '*' | ||
update-types: [version-update:semver-patch, version-update:semver-minor] | ||
- package-ecosystem: pip | ||
directory: /backend/worker | ||
schedule: | ||
interval: 'weekly' | ||
interval: weekly | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-patch","version-update:semver-minor"] | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
- dependency-name: '*' | ||
update-types: [version-update:semver-patch, version-update:semver-minor] | ||
- package-ecosystem: docker | ||
directory: / | ||
schedule: | ||
interval: 'weekly' | ||
interval: weekly | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-patch","version-update:semver-minor"] | ||
|
||
- dependency-name: '*' | ||
update-types: [version-update:semver-patch, version-update:semver-minor] |
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 |
---|---|---|
|
@@ -7,15 +7,15 @@ on: | |
- develop | ||
- production | ||
paths: | ||
- 'backend/**' | ||
- '.github/workflows/backend.yml' | ||
- backend/** | ||
- .github/workflows/backend.yml | ||
pull_request: | ||
branches: | ||
- develop | ||
- production | ||
paths: | ||
- 'backend/**' | ||
- '.github/workflows/backend.yml' | ||
- backend/** | ||
- .github/workflows/backend.yml | ||
|
||
defaults: | ||
run: | ||
|
@@ -33,9 +33,8 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Lint | ||
|
@@ -53,8 +52,7 @@ jobs: | |
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
restore-keys: ${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Run site locally | ||
|
@@ -86,8 +84,7 @@ jobs: | |
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
restore-keys: ${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build | ||
|
@@ -114,12 +111,13 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
python-version: '3.10' | ||
- name: Copy .env file | ||
run: cp ../dev.env.example .env | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
pip- | ||
restore-keys: pip- | ||
- run: pip install -r worker/requirements.txt | ||
- run: pytest | ||
build_worker: | ||
|
@@ -134,9 +132,8 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build worker container | ||
|
@@ -157,9 +154,8 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
|
@@ -185,7 +181,18 @@ jobs: | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
||
- name: Run syncdb | ||
run: aws lambda invoke --function-name crossfeed-staging-syncdb --region us-east-1 /dev/stdout | ||
run: | | ||
aws lambda invoke --function-name crossfeed-staging-syncdb \ | ||
--region us-east-1 /dev/stdout | ||
working-directory: backend | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
||
- name: Run syncmdl | ||
run: | | ||
aws lambda invoke --function-name crossfeed-staging-syncmdl \ | ||
--region us-east-1 /dev/stdout | ||
working-directory: backend | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
|
@@ -206,9 +213,8 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
|
@@ -234,7 +240,18 @@ jobs: | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
||
- name: Run syncdb | ||
run: aws lambda invoke --function-name crossfeed-prod-syncdb --region us-east-1 /dev/stdout | ||
run: | | ||
aws lambda invoke --function-name crossfeed-prod-syncdb --region us-east-1 \ | ||
/dev/stdout | ||
working-directory: backend | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
||
- name: Run syncmdl | ||
run: | | ||
aws lambda invoke --function-name crossfeed-prod-syncmdl --region us-east-1 \ | ||
/dev/stdout | ||
working-directory: backend | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
|
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.