Skip to content

Commit a7234d8

Browse files
committed
v1.2 - snake, DS3231 RTC, gzip, hardening and more
1 parent c51a304 commit a7234d8

29 files changed

Lines changed: 7645 additions & 1129 deletions

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Question or discussion
4+
url: https://github.com/Tech1k/helloesp/discussions
5+
about: For questions, ideas, or general chat. Issues are for bug reports.
6+
- name: Security vulnerability
7+
url: https://github.com/Tech1k/helloesp/security/policy
8+
about: See SECURITY.md for how to report security issues.

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
commit-message:
8+
prefix: "ci"
9+
labels:
10+
- "dependencies"
11+
- "ci"

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v4
8-
- uses: actions/cache@v4
7+
- uses: actions/checkout@v6
8+
- uses: actions/cache@v5
99
with:
1010
path: ~/.platformio
11-
key: pio-${{ hashFiles('platformio.ini') }}
12-
- uses: actions/setup-python@v5
11+
key: pio-${{ runner.os }}-${{ hashFiles('platformio.ini') }}
12+
- uses: actions/setup-python@v6
1313
with:
1414
python-version: '3.x'
15-
- run: pip install platformio
15+
- run: pip install 'platformio==6.1.*'
1616
- run: pio run
17+
- run: pio check --fail-on-defect=high

.github/workflows/codeql.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CodeQL
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
schedule:
8+
- cron: "0 5 * * 0"
9+
10+
jobs:
11+
analyze:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
language: [javascript]
21+
steps:
22+
- uses: actions/checkout@v6
23+
- uses: github/codeql-action/init@v4
24+
with:
25+
languages: ${{ matrix.language }}
26+
- uses: github/codeql-action/analyze@v4
27+
with:
28+
category: "/language:${{ matrix.language }}"

.github/workflows/lighthouse.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lighthouse CI
2+
on:
3+
push:
4+
branches: [master]
5+
schedule:
6+
- cron: "0 12 * * 1"
7+
workflow_dispatch:
8+
9+
jobs:
10+
lighthouse:
11+
name: Lighthouse (${{ matrix.preset }})
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
statuses: write
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
preset: [desktop, mobile]
20+
steps:
21+
- uses: actions/checkout@v6
22+
- uses: actions/setup-node@v6
23+
with:
24+
node-version: "22"
25+
- run: npm install -g @lhci/cli@0.15.x
26+
- run: lhci autorun ${{ matrix.preset == 'desktop' && '--collect.settings.preset=desktop' || '' }}
27+
env:
28+
LHCI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
.cache
44
compile_commands.json
55
data/config.txt
6+
data/logs/
7+
data/stats/
8+
data/records/
9+
*.bak
10+
*.tmp

README.md

Lines changed: 129 additions & 38 deletions
Large diffs are not rendered by default.

SECURITY.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Security Policy
2+
3+
If you discover a security issue, please email **hello@tech1k.com** instead of opening a public issue. I'll respond as soon as I can.
4+
5+
## Scope
6+
7+
In scope:
8+
- Cloudflare Worker (`worker/worker.js`)
9+
- ESP32 firmware (`src/main.cpp`)
10+
- Any repository code that could expose credentials or sensitive data
11+
12+
Out of scope:
13+
- Issues requiring physical access (device is on a wall, behind glass)
14+
- Social engineering
15+
- Third-party services like Cloudflare/SMTP2GO/Open-Meteo (report those upstream)
16+
- Temporary downtime or availability issues
17+
18+
## Notes
19+
20+
This is a hobby project, not a paid bug bounty. Reports are appreciated regardless.
21+
22+
If you'd like credit in the changelog, let me know. If you prefer to stay anonymous, that's fine too.

data/404.html

Lines changed: 41 additions & 1 deletion
Large diffs are not rendered by default.

data/404.html.gz

6.74 KB
Binary file not shown.

0 commit comments

Comments
 (0)