Skip to content
This repository was archived by the owner on Aug 17, 2022. It is now read-only.

Commit b1908f5

Browse files
authored
Merge pull request #1 from HealthScreening/master
fetch update
2 parents b69d3dd + 2b0b460 commit b1908f5

File tree

14 files changed

+202
-652
lines changed

14 files changed

+202
-652
lines changed

.github/codeql-analysis.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [master]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [master]
20+
schedule:
21+
- cron: "40 21 * * 3"
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: ["javascript"]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
52+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53+
# queries: security-extended,security-and-quality
54+
55+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
56+
# If this step fails, then you should remove it and run the build manually (see below)
57+
- name: Autobuild
58+
uses: github/codeql-action/autobuild@v2
59+
60+
# ℹ️ Command-line programs to run using the OS shell.
61+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
62+
63+
# If the Autobuild fails above, remove it and uncomment the following three lines.
64+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
65+
66+
# - run: |
67+
# echo "Run, Build Application using script"
68+
# ./location_of_script_within_repo/buildscript.sh
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v2

.github/dependabot.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
4-
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5-
61
version: 2
72
updates:
8-
- package-ecosystem: "npm" # See documentation for possible values
9-
directory: "/" # Location of package manifests
3+
- package-ecosystem: "npm"
4+
directory: "/"
105
schedule:
116
interval: "daily"
7+
time: "00:00"
128
- package-ecosystem: "github-actions"
139
directory: "/"
1410
schedule:
1511
interval: "daily"
12+
time: "00:00"

.github/workflows/auto-update.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Auto Update
2+
3+
# Controls when the workflow will run
4+
on:
5+
workflow_dispatch: # Allows workflow to be manually triggered from Actions page
6+
schedule:
7+
- cron: "0 0 * * 0" # Runs every Sunday at midnight
8+
9+
jobs:
10+
npm-upgrade:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Setup node
16+
uses: actions/setup-node@v3.3.0
17+
with:
18+
node-version: 18
19+
- name: Update dependencies
20+
run: npm upgrade
21+
- uses: tibdex/github-app-token@v1
22+
id: generate-token
23+
with:
24+
app_id: ${{ secrets.APP_ID }}
25+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
26+
- name: Create Pull Request
27+
uses: peter-evans/create-pull-request@v4
28+
with:
29+
title: "Auto NPM Update"
30+
body: "This PR was created automatically by the Auto Update workflow."
31+
signoff: true
32+
commit-message: "Update dependencies via `npm upgrade`."
33+
branch: "create-pull-request/auto-update/npm"
34+
branch-suffix: "timestamp"
35+
labels: "auto-update,dependencies,javascript"
36+
delete-branch: true
37+
token: ${{ steps.generate-token.outputs.token }}

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
15+
- uses: actions/setup-node@v3.3.0
1616
with:
1717
node-version: 16
1818
- run: npm ci
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v3
27-
- uses: actions/setup-node@v3
27+
- uses: actions/setup-node@v3.3.0
2828
with:
2929
node-version: 16
3030
registry-url: https://registry.npmjs.org/

example/config/config.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

example/models/account.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

example/models/city.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

example/models/country.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

example/models/geo.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

example/models/index.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)