Skip to content

Commit 28ffc84

Browse files
authored
Add CodeQL workflow and update project metadata (#45)
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.
1 parent 672f3f4 commit 28ffc84

File tree

4 files changed

+57
-20
lines changed

4 files changed

+57
-20
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- "!dependabot/**"
8+
pull_request:
9+
branches:
10+
- main
11+
- "!dependabot/**"
12+
workflow_dispatch:
13+
14+
jobs:
15+
analyze:
16+
name: Analyze
17+
runs-on: ubuntu-latest
18+
permissions:
19+
actions: read
20+
contents: read
21+
security-events: write
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+
with:
27+
persist-credentials: false
28+
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
31+
with:
32+
languages: "javascript"
33+
queries: +security-and-quality
34+
35+
- name: Perform CodeQL Analysis
36+
uses: github/codeql-action/analyze@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
Display for all the H5BP projects.
44

5-
Adapted from [twitter.github.com](https://github.com/twitter/twitter.github.com).
5+
Adapted from [opensource-website](https://github.com/twitter/opensource-website).

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
<head>
55
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
67
<title>H5BP &hearts; Open Source</title>
78
<meta name="description" content="Find all the H5BP projects in one place.">
8-
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="stylesheet" href="assets/normalize.css">
1010
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/main.min.css">
1111
<link rel="stylesheet" href="assets/style.css">
@@ -14,10 +14,10 @@
1414

1515
<body>
1616
<div class="grid">
17-
<div class="unit-1-3 site-header">
17+
<header class="unit-1-3 site-header">
1818
<div class="header-box">
1919
<div class="site-logo">
20-
<img src="assets/h5bp-logo.png" alt="">
20+
<img src="assets/h5bp-logo.png" width="57" height="57" alt="">
2121
<h1>H5BP</h1>
2222
</div>
2323
<h2>A bunch of people creating open source software. Fork a project and get involved!</h2>
@@ -31,9 +31,9 @@ <h2>A bunch of people creating open source software. Fork a project and get invo
3131
<h3>Recently updated</h3>
3232
<ol id="updated-repos"></ol>
3333
</div>
34-
</div>
34+
</header>
3535

36-
<div class="site-content" id="repos"></div>
36+
<main class="site-content" id="repos"></main>
3737
</div>
3838

3939
<footer class="site-footer">

package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
{
2-
"engines": {
3-
"node": ">=8",
4-
"npm": ">=3"
5-
},
6-
"babel": {
7-
"presets": [
8-
"@babel/preset-env"
9-
]
10-
},
11-
"scripts": {
12-
"babel": "babel ./assets/app.babel.js --watch --out-file ./assets/app.js"
13-
},
14-
"homepage": "https://h5bp.org/",
15-
"license": "MIT",
162
"name": "h5bp.github.io",
173
"version": "1.0.0",
4+
"private": true,
185
"description": "Home page for the h5bp gitHub organization.",
6+
"homepage": "https://h5bp.org/",
197
"repository": {
208
"type": "git",
219
"url": "https://github.com/h5bp/h5bp.github.io.git"
2210
},
11+
"license": "MIT",
12+
"scripts": {
13+
"babel": "babel ./assets/app.babel.js --watch --out-file ./assets/app.js"
14+
},
15+
"babel": {
16+
"presets": [
17+
"@babel/preset-env"
18+
]
19+
},
2320
"devDependencies": {
2421
"@babel/cli": "^7.4.3",
2522
"@babel/core": "^7.4.3",
2623
"@babel/preset-env": "^7.4.3",
2724
"babel-preset-env": "^1.7.0"
25+
},
26+
"engines": {
27+
"node": ">=8",
28+
"npm": ">=3"
2829
}
2930
}

0 commit comments

Comments
 (0)