From f6596db12c9e120990831e1caa149ba67f8de6c0 Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Thu, 11 Sep 2025 10:29:49 +0900 Subject: [PATCH] Add CodeQL workflow and update project metadata Introduces a CodeQL analysis GitHub Actions workflow for security and quality scanning. Updates the README to reference the correct upstream project. Refactors index.html for improved semantics and accessibility, including header/main elements and image attributes. Cleans up and reorders package.json fields, adds 'private' flag, and makes minor metadata adjustments. --- .github/workflows/codeql-analysis.yml | 36 +++++++++++++++++++++++++++ README.md | 2 +- index.html | 10 ++++---- package.json | 29 ++++++++++----------- 4 files changed, 57 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..101905c --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,36 @@ +name: "CodeQL" + +on: + push: + branches: + - main + - "!dependabot/**" + pull_request: + branches: + - main + - "!dependabot/**" + workflow_dispatch: + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + steps: + - name: Checkout repository + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + persist-credentials: false + + - name: Initialize CodeQL + uses: github/codeql-action/init@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1 + with: + languages: "javascript" + queries: +security-and-quality + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1 diff --git a/README.md b/README.md index 20b7938..3a2172a 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ Display for all the H5BP projects. -Adapted from [twitter.github.com](https://github.com/twitter/twitter.github.com). +Adapted from [opensource-website](https://github.com/twitter/opensource-website). diff --git a/index.html b/index.html index e8f28f1..45e5438 100644 --- a/index.html +++ b/index.html @@ -3,9 +3,9 @@ + H5BP ♥ Open Source - @@ -14,10 +14,10 @@
- + -
+