Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @brittek
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: brittek
custom: https://brittek.io/contact
15 changes: 15 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Security Policy

## Supported Versions

Security fixes are applied to the `main` branch. Deployments derived from this repository should track `main` or cherry-pick patches promptly.

## Reporting a Vulnerability

Please report suspected vulnerabilities by emailing [[email protected]](mailto:[email protected]). Include:

- Detailed description of the issue and potential impact
- Steps to reproduce or proof-of-concept
- Any mitigations already in place

We will acknowledge receipt within 2 business days and provide status updates at least weekly until resolution. Please do not disclose the issue publicly until it has been remediated and coordinated disclosure has been agreed.
21 changes: 21 additions & 0 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Support

## Need help?

For general questions about Brittek Digital or this repository:

- 📧 Email: [[email protected]](mailto:[email protected])
- 🌐 Website: [https://brittek.io](https://brittek.io)

## Response Times

- Business hours: Monday–Friday, 09:00–17:00 AEST
- Target initial response: within 2 business days

## Bug Reports & Feature Requests

Please open an issue with the appropriate template and include environment details, steps to reproduce, and expected vs. actual behaviour. Sensitive information should be redacted or sent via email.

## Security Issues

Refer to [SECURITY.md](SECURITY.md) for responsible disclosure instructions.
55 changes: 55 additions & 0 deletions .github/workflows/traffic-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: traffic-snapshot

on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:

permissions:
contents: write

jobs:
snapshot:
if: ${{ secrets.TRAFFIC_PAT != '' }}
runs-on: ubuntu-latest
env:
TRAFFIC_TOKEN: ${{ secrets.TRAFFIC_PAT }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Configure git credentials
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git remote set-url origin https://x-access-token:${TRAFFIC_TOKEN}@github.com/${{ github.repository }}.git
- name: Snapshot traffic metrics
env:
REPO: ${{ github.repository }}
run: |
set -euo pipefail
if [ -z "${TRAFFIC_TOKEN}" ]; then
echo "TRAFFIC_PAT secret is not configured; skipping snapshot." >&2
exit 0
fi
DATE="$(date -u +"%Y-%m-%dT%H-%M-%SZ")"
mkdir -p analytics
for endpoint in views clones popular/referrers popular/paths; do
slug="${endpoint//\//-}"
file="analytics/${DATE}-${slug}.json"
echo "Fetching ${endpoint} -> ${file}"
curl -sSf \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${TRAFFIC_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/${REPO}/traffic/${endpoint}" | jq '.' > "${file}"
done
if git status --short | grep -q "."; then
git add analytics
git commit -m "chore: snapshot traffic ${DATE}"
BRANCH="${GITHUB_REF##*/}"
git push origin HEAD:"${BRANCH}"
else
echo "No changes to commit"
fi
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
<!-- Logo -->
<p align="center">
<img src="https://assets.codepen.io/9806267/2%400.5x.png" alt="Brittek Digital Monogram" width="180" height="180" />
<img
src="https://assets.codepen.io/9806267/2_5.png"
alt="Brittek Digital Logo"
width="200"
height="auto"
loading="eager"
style="margin-bottom: 1rem;"
/>
</p>

<h1 align="center">brittek.io</h1>
<p align="center"><strong>Brittek Digital — Website front-end, AI-first structured data, and deployment artefacts.</strong></p>

> ⚠️ Official Repository — Brittek I/O
> This is the **only** canonical source for the Brittek I/O maintenance site.
> • Website: https://brittek.io
> • Verified domain(s): brittek.io
> • No redistribution / rebranding without written consent
---

## TL;DR
Expand Down
14 changes: 14 additions & 0 deletions analytics/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Traffic Snapshots

This directory stores timestamped JSON snapshots of GitHub traffic metrics (views, clones, referrers, and popular paths) captured by the `traffic-snapshot` workflow.

Each file is named using the UTC timestamp of collection and the metric, for example:

```
2024-05-08T02-00-00Z-views.json
2024-05-08T02-00-00Z-clones.json
2024-05-08T02-00-00Z-popular-referrers.json
2024-05-08T02-00-00Z-popular-paths.json
```

> **Note:** The workflow requires a personal access token with `repo` and `traffic` scopes stored as `TRAFFIC_PAT` in the repository secrets. Without this secret the snapshot job will be skipped.
Loading