mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 04:53:11 -04:00
Updated checks to include a npm install
This commit is contained in:
@@ -133,7 +133,7 @@
|
|||||||
"filename": ".github/workflows/checks.yml",
|
"filename": ".github/workflows/checks.yml",
|
||||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||||
"is_verified": false,
|
"is_verified": false,
|
||||||
"line_number": 61,
|
"line_number": 67,
|
||||||
"is_secret": false
|
"is_secret": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
"filename": ".github/workflows/checks.yml",
|
"filename": ".github/workflows/checks.yml",
|
||||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||||
"is_verified": false,
|
"is_verified": false,
|
||||||
"line_number": 95,
|
"line_number": 101,
|
||||||
"is_secret": false
|
"is_secret": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -702,5 +702,5 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"generated_at": "2024-06-11T22:26:18Z"
|
"generated_at": "2024-07-09T16:26:26Z"
|
||||||
}
|
}
|
||||||
|
|||||||
22
.github/workflows/checks.yml
vendored
22
.github/workflows/checks.yml
vendored
@@ -23,6 +23,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: "16.15.1"
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
- uses: ./.github/actions/setup-project
|
- uses: ./.github/actions/setup-project
|
||||||
- uses: jwalton/gh-find-current-pr@v1
|
- uses: jwalton/gh-find-current-pr@v1
|
||||||
id: findPr
|
id: findPr
|
||||||
@@ -86,10 +92,10 @@ jobs:
|
|||||||
- name: Clone API
|
- name: Clone API
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: GSA/notifications-api
|
repository: GSA/notifications-api
|
||||||
path: 'notifications-api'
|
path: "notifications-api"
|
||||||
- name: Install API dependencies
|
- name: Install API dependencies
|
||||||
working-directory: 'notifications-api'
|
working-directory: "notifications-api"
|
||||||
run: make bootstrap
|
run: make bootstrap
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: postgresql://user:password@localhost:5432/test_notification_api
|
DATABASE_URL: postgresql://user:password@localhost:5432/test_notification_api
|
||||||
@@ -99,7 +105,7 @@ jobs:
|
|||||||
NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
|
NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
|
||||||
NOTIFY_ENVIRONMENT: development
|
NOTIFY_ENVIRONMENT: development
|
||||||
- name: Run API server
|
- name: Run API server
|
||||||
working-directory: 'notifications-api'
|
working-directory: "notifications-api"
|
||||||
run: make run-procfile &
|
run: make run-procfile &
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: postgresql://user:password@localhost:5432/test_notification_api
|
DATABASE_URL: postgresql://user:password@localhost:5432/test_notification_api
|
||||||
@@ -183,12 +189,12 @@ jobs:
|
|||||||
- name: Run OWASP Baseline Scan
|
- name: Run OWASP Baseline Scan
|
||||||
uses: zaproxy/action-baseline@v0.9.0
|
uses: zaproxy/action-baseline@v0.9.0
|
||||||
with:
|
with:
|
||||||
docker_name: 'ghcr.io/zaproxy/zaproxy:weekly'
|
docker_name: "ghcr.io/zaproxy/zaproxy:weekly"
|
||||||
target: 'http://localhost:6012'
|
target: "http://localhost:6012"
|
||||||
fail_action: true
|
fail_action: true
|
||||||
allow_issue_writing: false
|
allow_issue_writing: false
|
||||||
rules_file_name: 'zap.conf'
|
rules_file_name: "zap.conf"
|
||||||
cmd_options: '-I'
|
cmd_options: "-I"
|
||||||
|
|
||||||
a11y-scan:
|
a11y-scan:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|||||||
Reference in New Issue
Block a user