Skip to content

Commit fb49f84

Browse files
docs: deliver daily Omni-Sentinel operational report and harden CI/CD
- Generate live G-SRI and attestation telemetry report. - Pin all GitHub Actions to commit SHAs for security compliance. - Fix DeepSource analyzer config and Netlify rule formatting. - Refactor server.js for CodeQL security and Deno linting compliance. - Add missing process/buffer imports in Next.js and backend. Co-authored-by: OneFineStarstuff <87420139+OneFineStarstuff@users.noreply.github.com>
1 parent 1e111e1 commit fb49f84

35 files changed

Lines changed: 600 additions & 575 deletions

.deepsource.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ version = 1
44
name = "python"
55
enabled = true
66

7+
[analyzers.meta]
8+
runtime_version = "3.x"
9+
710
[[analyzers]]
811
name = "javascript"
912
enabled = true

.github/workflows/codeql.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
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-
#
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+
#
1212
name: "CodeQL Advanced"
1313

1414
on:
@@ -22,20 +22,20 @@ on:
2222
jobs:
2323
analyze:
2424
name: Analyze (${{ matrix.language }})
25-
# Runner size impacts CodeQL analysis time. To learn more, please see:
26-
# - https://gh.io/recommended-hardware-resources-for-running-codeql
27-
# - https://gh.io/supported-runners-and-hardware-resources
28-
# - https://gh.io/using-larger-runners (GitHub.com only)
29-
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
25+
# Runner size impacts CodeQL analysis time. To learn more, please see:
26+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
27+
# - https://gh.io/supported-runners-and-hardware-resources
28+
# - https://gh.io/using-larger-runners (GitHub.com only)
29+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
3030
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
3131
permissions:
32-
# required for all workflows
32+
# required for all workflows
3333
security-events: write
3434

35-
# required to fetch internal or private CodeQL packs
35+
# required to fetch internal or private CodeQL packs
3636
packages: read
3737

38-
# only required for workflows in private repositories
38+
# only required for workflows in private repositories
3939
actions: read
4040
contents: read
4141

@@ -45,37 +45,37 @@ jobs:
4545
include:
4646
- language: python
4747
build-mode: none
48-
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
49-
# Use `c-cpp` to analyze code written in C, C++ or both
50-
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
51-
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
52-
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
53-
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
54-
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
55-
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
48+
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
49+
# Use `c-cpp` to analyze code written in C, C++ or both
50+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
51+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
52+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
53+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
54+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
55+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
5656
steps:
5757
- name: Checkout repository
58-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
58+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
5959

60-
# Initializes the CodeQL tools for scanning.
60+
# Initializes the CodeQL tools for scanning.
6161
- name: Initialize CodeQL
62-
uses: github/codeql-action/init@b3a0ed7d6d52f9b8c764e52570d50711681a2083 # v3.28.10
62+
uses: github/codeql-action/init@a65a038433a26f4363cf9f029e3b9ceac831ad5d
6363
with:
6464
languages: ${{ matrix.language }}
6565
build-mode: ${{ matrix.build-mode }}
66-
# If you wish to specify custom queries, you can do so here or in a config file.
67-
# By default, queries listed here will override any specified in a config file.
68-
# Prefix the list here with "+" to use these queries and those in the config file.
66+
# If you wish to specify custom queries, you can do so here or in a config file.
67+
# By default, queries listed here will override any specified in a config file.
68+
# Prefix the list here with "+" to use these queries and those in the config file.
6969

70-
# For more 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
71-
# queries: security-extended,security-and-quality
70+
# For more 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
71+
# queries: security-extended,security-and-quality
7272

73-
# If the analyze step fails for one of the languages you are analyzing with
74-
# "We were unable to automatically build your code", modify the matrix above
75-
# to set the build mode to "manual" for that language. Then modify this step
76-
# to build your code.
77-
# ℹ️ Command-line programs to run using the OS shell.
78-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
73+
# If the analyze step fails for one of the languages you are analyzing with
74+
# "We were unable to automatically build your code", modify the matrix above
75+
# to set the build mode to "manual" for that language. Then modify this step
76+
# to build your code.
77+
# ℹ️ Command-line programs to run using the OS shell.
78+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
7979
- if: matrix.build-mode == 'manual'
8080
shell: bash
8181
run: |
@@ -87,6 +87,6 @@ jobs:
8787
exit 1
8888
8989
- name: Perform CodeQL Analysis
90-
uses: github/codeql-action/analyze@b3a0ed7d6d52f9b8c764e52570d50711681a2083 # v3.28.10
90+
uses: github/codeql-action/analyze@a65a038433a26f4363cf9f029e3b9ceac831ad5d
9191
with:
9292
category: "/language:${{matrix.language}}"

.github/workflows/daily-gsifi-governance-validation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ jobs:
5050
timeout-minutes: 10
5151
steps:
5252
- name: Checkout
53-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
5454

5555
- name: Setup Python
56-
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
56+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
5757
with:
5858
python-version: '3.12'
5959

@@ -77,7 +77,7 @@ jobs:
7777

7878
- name: Upload governance test report
7979
if: always()
80-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
80+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
8181
with:
8282
name: gsifi-governance-test-report
8383
path: |

.github/workflows/deno.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
55

6-
# This workflow will install Deno then run `deno lint` and `deno test`.
7-
# For more information see: https://github.com/denoland/setup-deno
6+
# This workflow will install Deno then run `deno lint` and `deno test`.
7+
# For more information see: https://github.com/denoland/setup-deno
88

99
name: Deno
1010

@@ -23,17 +23,17 @@ jobs:
2323

2424
steps:
2525
- name: Setup repo
26-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2727

2828
- name: Setup Deno
29-
# v1
29+
# uses: denoland/setup-deno@v1
3030
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2
3131
with:
3232
deno-version: v1.x
3333

34-
# Uncomment this step to verify the use of 'deno fmt' on each commit.
35-
# - name: Verify formatting
36-
# run: deno fmt --check
34+
# Uncomment this step to verify the use of 'deno fmt' on each commit.
35+
# - name: Verify formatting
36+
# run: deno fmt --check
3737

3838
- name: Run linter
3939
run: deno lint

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1717
- name: Build the Docker image
1818
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)

.github/workflows/federated-zk-docs-validation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2323

2424
- name: Set up Python
25-
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
25+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
2626
with:
2727
python-version: '3.11'
2828

.github/workflows/governance-artifacts-ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
timeout-minutes: 12
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3737

3838
- name: Set up Python
39-
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
39+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
4040
with:
4141
python-version: '3.12'
4242
cache: 'pip'
@@ -51,7 +51,7 @@ jobs:
5151
run: make governance-validate
5252

5353
- name: Setup OPA
54-
uses: open-policy-agent/setup-opa@3d1284a7e8027725914bca15554477dd762a938 # v2.2.0
54+
uses: open-policy-agent/setup-opa@3d1284a7e8027725914bca15554477dd762a938
5555
with:
5656
version: v1.15.2
5757

@@ -75,10 +75,10 @@ jobs:
7575
timeout-minutes: 8
7676
steps:
7777
- name: Checkout
78-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
78+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
7979

8080
- name: Setup Python
81-
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
81+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
8282
with:
8383
python-version: '3.12'
8484
cache: 'pip'
@@ -89,15 +89,15 @@ jobs:
8989

9090
- name: Upload G-Stack test artifacts
9191
if: always()
92-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
92+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
9393
with:
9494
name: gstack-test-results
9595
path: artifacts/test-results
9696
if-no-files-found: ignore
9797

9898
- name: Upload G-Stack validation report
9999
if: always()
100-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
100+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
101101
with:
102102
name: gstack-validation-report
103103
path: artifacts/validation/gstack-validation.json

.github/workflows/governance-artifacts-validate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2020

2121
- name: Setup Python
22-
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
22+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
2323
with:
2424
python-version: '3.11'
2525

.github/workflows/governance-artifacts.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1616

1717
- name: Setup Python
18-
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
18+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
1919
with:
2020
python-version: '3.12'
2121

@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Upload governance validation report
3232
if: always()
33-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
33+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
3434
with:
3535
name: governance-validation-report
3636
path: .reports/governance-validation.json

.github/workflows/governance-docs-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
timeout-minutes: 10
3737
steps:
3838
- name: Checkout
39-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
39+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
4040

4141
- name: Set up Node.js
42-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
42+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a
4343
with:
4444
node-version: '20'
4545

@@ -50,7 +50,7 @@ jobs:
5050
run: bash -n tests/test_lint_governance_docs.sh
5151

5252
- name: Shellcheck lint scripts
53-
uses: ludeeus/action-shellcheck@94e4a7d7ca9a4589251034c201409d80d200e007 # v2.0.0
53+
uses: ludeeus/action-shellcheck@94e4a7d7ca9a4589251034c201409d80d200e007
5454
with:
5555
scandir: "scripts tests"
5656
severity: warning

0 commit comments

Comments
 (0)