Skip to content

Commit 68f213c

Browse files
Merge branch 'main' into feature/groundwater
2 parents 76983e7 + c99e64a commit 68f213c

122 files changed

Lines changed: 4842 additions & 1924 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/data-update-wqx.yml

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,44 +10,39 @@ jobs:
1010
update:
1111
runs-on: ubuntu-latest
1212
steps:
13-
-
14-
name: Checkout
15-
uses: actions/checkout@v2
16-
-
17-
name: Set up Node.js
18-
uses: actions/setup-node@master
13+
- name: Checkout
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
- name: Set up Node.js
16+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
1917
with:
20-
node-version: 14.x
21-
-
22-
name: Create .npmrc
18+
node-version: 22.x
19+
registry-url: "https://npm.pkg.github.com"
20+
- name: Create .npmrc
2321
run: |
2422
echo "//npm.pkg.github.com/:_authToken=${{ github.token }}" >> ~/.npmrc
2523
echo "@gordonfn:registry=https://npm.pkg.github.com" >> ~/.npmrc
2624
echo ".npmrc" >> .gitignore
27-
-
28-
name: Cache npm
29-
uses: actions/cache@v2
25+
- name: Cache npm
26+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
3027
with:
3128
path: ~/.npm
3229
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3330
restore-keys: |
3431
${{ runner.os }}-node-
35-
# -
36-
# name: Install dependencies
37-
# run: |
38-
# npm install
39-
# npm update wqx
40-
# -
41-
# name: Build and test allowed values
42-
# run: |
43-
# npm test
44-
-
45-
name: Check for file changes
32+
# -
33+
# name: Install dependencies
34+
# run: |
35+
# npm install
36+
# npm update wqx
37+
# -
38+
# name: Build and test allowed values
39+
# run: |
40+
# npm test
41+
- name: Check for file changes
4642
run: |
4743
git status --porcelain
4844
echo "change=$(git status --porcelain | wc -l)" >> $GITHUB_ENV
49-
-
50-
if: env.change != 0
45+
- if: env.change != 0
5146
name: Commit & push changes
5247
run: |
5348
git config --local user.name ${{ github.actor }}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# This workflow uses actions that are not certified by GitHub. They are provided
2+
# by a third-party and are governed by separate terms of service, privacy
3+
# policy, and support documentation.
4+
5+
name: OSSF Scorecard
6+
on:
7+
# For Branch-Protection check. Only the default branch is supported. See
8+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
9+
branch_protection_rule:
10+
# To guarantee Maintained check is occasionally updated. See
11+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
12+
schedule:
13+
- cron: "29 14 * * 3"
14+
push:
15+
branches: ["main"]
16+
17+
# Declare default permissions as read only.
18+
permissions: read-all
19+
20+
jobs:
21+
analysis:
22+
name: Scorecard analysis
23+
runs-on: ubuntu-latest
24+
permissions:
25+
# Needed to upload the results to code-scanning dashboard.
26+
security-events: write
27+
# Needed to publish results and get a badge (see publish_results below).
28+
id-token: write
29+
# Uncomment the permissions below if installing in a private repository.
30+
# contents: read
31+
# actions: read
32+
33+
steps:
34+
- name: "Checkout code"
35+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
36+
with:
37+
persist-credentials: false
38+
39+
- name: "Run analysis"
40+
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
41+
with:
42+
results_file: results.sarif
43+
results_format: sarif
44+
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
45+
# - you want to enable the Branch-Protection check on a *public* repository, or
46+
# - you are installing Scorecard on a *private* repository
47+
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
48+
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
49+
50+
# Public repositories:
51+
# - Publish results to OpenSSF REST API for easy access by consumers
52+
# - Allows the repository to include the Scorecard badge.
53+
# - See https://github.com/ossf/scorecard-action#publishing-results.
54+
# For private repositories:
55+
# - `publish_results` will always be set to `false`, regardless
56+
# of the value entered here.
57+
publish_results: true
58+
59+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
60+
# format to the repository Actions tab.
61+
- name: "Upload artifact"
62+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
63+
with:
64+
name: SARIF file
65+
path: results.sarif
66+
retention-days: 5
67+
68+
# Upload the results to GitHub's code scanning dashboard (optional).
69+
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
70+
- name: "Upload to code-scanning"
71+
uses: github/codeql-action/upload-sarif@babb554ede22fd5605947329c4d04d8e7a0b8155 # v3.27.7
72+
with:
73+
sarif_file: results.sarif

.github/workflows/sec-sast-codeql.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,39 @@ on:
77
#schedule:
88
# - cron: '0 0 * * 0'
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
Scan:
1215
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
1316
runs-on: ubuntu-latest
1417

18+
permissions:
19+
actions: read
20+
contents: read
21+
security-events: write
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
language: [javascript]
27+
1528
steps:
1629
- name: Checkout repository
17-
uses: actions/checkout@v2
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1831

1932
# Initializes the CodeQL tools for scanning.
2033
- name: Initialize CodeQL
21-
uses: github/codeql-action/init@v1
34+
uses: github/codeql-action/init@babb554ede22fd5605947329c4d04d8e7a0b8155 # v2.27.7
2235
with:
23-
languages: javascript
36+
languages: ${{ matrix.language }}
37+
queries: +security-and-quality
38+
39+
- name: Autobuild
40+
uses: github/codeql-action/autobuild@babb554ede22fd5605947329c4d04d8e7a0b8155 # v2.27.7
2441

2542
- name: Perform CodeQL Analysis
26-
uses: github/codeql-action/analyze@v1
43+
uses: github/codeql-action/analyze@babb554ede22fd5605947329c4d04d8e7a0b8155 # v2.27.7
44+
with:
45+
category: "/language:${{ matrix.language }}"

.github/workflows/sec-sast-sonarcloud.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414

1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
with:
1919
fetch-depth: 5
2020

2121
- name: SonarCloud Scan
22-
uses: sonarsource/sonarcloud-github-action@master
22+
uses: sonarsource/sonarcloud-github-action@02ef91109b2d589e757aefcfb2854c2783fd7b19 # 4.0.0
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
25+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/sec-secrets.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
- name: Checkout repository
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616

1717
- name: TruffleHog Scan
18-
uses: edplato/trufflehog-actions-scan@master
18+
uses: edplato/trufflehog-actions-scan@6cf4d6ab0edcfee4251c8c4d214e3655b84c6cb6 # 0.9m-beta

.github/workflows/tests.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,28 @@ jobs:
1010
tests:
1111
runs-on: ubuntu-latest
1212
steps:
13-
-
14-
name: Checkout
15-
uses: actions/checkout@v2
16-
-
17-
name: Set up Node.js
18-
uses: actions/setup-node@master
13+
- name: Checkout
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
- name: Set up Node.js
16+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
1917
with:
20-
node-version: 14.x
21-
-
22-
name: Create .npmrc
18+
node-version: 22.x
19+
registry-url: "https://npm.pkg.github.com"
20+
- name: Create .npmrc
2321
run: |
24-
echo "//npm.pkg.github.com/:_authToken=${{ github.token }}" >> ~/.npmrc
2522
echo "@gordonfn:registry=https://npm.pkg.github.com" >> ~/.npmrc
2623
echo ".npmrc" >> .gitignore
27-
-
28-
name: Cache npm
29-
uses: actions/cache@v2
24+
- name: Cache npm
25+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
3026
with:
3127
path: ~/.npm
3228
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3329
restore-keys: |
3430
${{ runner.os }}-node-
35-
-
36-
name: Install dependencies
31+
- name: Install dependencies
3732
run: |
3833
npm install
3934
40-
-
41-
name: Build and test
35+
- name: Build and test
4236
run: |
4337
npm test

0 commit comments

Comments
 (0)