Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
1a1658a
Added 3 new DB Adapters - ``Better-SQLite3``, ``SQLite3``. & an ``Emb…
KrisPowers Feb 9, 2026
061cc9f
Added 2 Workflows - Extensions are tested in every Pull Request; A ch…
KrisPowers Feb 9, 2026
9cae6b6
Added HTTPS to the benchmark workflow
KrisPowers Feb 9, 2026
9c60c30
Added archived version backups
KrisPowers Feb 9, 2026
12928c8
Added DB Adapter tests & workflow
KrisPowers Feb 9, 2026
5ca1e51
Removed bloated spaces in the Library
KrisPowers Feb 9, 2026
9f98c3e
Added Extensions test workflow
KrisPowers Feb 9, 2026
ea77317
Added Pull Request Changelog workflow
KrisPowers Feb 9, 2026
67d176a
Fixed DB Adapter test workflow errors
KrisPowers Feb 9, 2026
b396b8e
Fixed extensions test workflow
KrisPowers Feb 9, 2026
b61f8dd
Fixed CLI & Shortcuts test workflows
KrisPowers Feb 10, 2026
0859a18
Migrated all workflows to 3 centralized workflows
KrisPowers Feb 10, 2026
b05e4ed
Fixed migrated workflows
KrisPowers Feb 10, 2026
ad20293
Fixed Release Changes Benchmark overview
KrisPowers Feb 10, 2026
a23d404
Fixed Release Changes workflow to include benchmarks
KrisPowers Feb 11, 2026
a735e3d
Added in Auto Redirect infrastructure, configurable via build config
KrisPowers Feb 11, 2026
3efdce5
Added JSDoc information for all Library features, with Types support
KrisPowers Feb 11, 2026
6a03a5d
Fixed Workflow Error: Unable to download artifact(s)
KrisPowers Feb 11, 2026
d1e48a8
Added in update/patch Notifier
KrisPowers Feb 11, 2026
99bc91a
Rearranged the Library to comply with modern organization standards
KrisPowers Feb 11, 2026
3c57cea
Removed Old-Library Format Backup
KrisPowers Feb 11, 2026
d2f3208
Remove Local Docs (New Repo)
KrisPowers Feb 12, 2026
8772bee
Docs Submodule Added
KrisPowers Feb 12, 2026
21227bd
Added Submodule Sync Workflow
KrisPowers Feb 12, 2026
ba605d1
Added Auto Backup Workflow into Archives for later use
KrisPowers Feb 12, 2026
c32fd49
Fixed Submodule Sync Workflow error line 252
KrisPowers Feb 12, 2026
a16ec43
Sync Docs
KrisPowers Feb 12, 2026
76d226b
Sync Docs Sub-Module
KrisPowers Feb 12, 2026
d604365
Synced Docs Sub-Module
KrisPowers Feb 12, 2026
6a72b6a
Fixed Submodule Sync Workflow
KrisPowers Feb 12, 2026
2792d05
chore: update submodule docs
github-actions[bot] Feb 13, 2026
afb98ea
Added JWT Extension
KrisPowers Feb 14, 2026
4dbb75e
Changed Submodule Sync Workflow's Commit Title
KrisPowers Feb 14, 2026
8d9330f
Modified GitHub ReadME
KrisPowers Feb 14, 2026
ba0f087
Automatic Submodule Sync: update submodule docs
github-actions[bot] Feb 14, 2026
e062169
Removed Duplicate comments in Submodule Sync workflow
KrisPowers Feb 14, 2026
80c45e8
Merge branch 'v1.x' of https://github.com/TrivaJS/triva into v1.x
KrisPowers Feb 14, 2026
d3334f0
Remove Guide
KrisPowers Feb 14, 2026
5072465
Fixe to Duplicate comments in Submodule Sync workflow
KrisPowers Feb 14, 2026
fc1b03e
Added 4 Daily Security Workflows
KrisPowers Feb 15, 2026
e1696b4
Added 4 Daily Security Workflows; Removed unused declarations in Libr…
KrisPowers Feb 15, 2026
227f843
Removed Unused Imports
KrisPowers Feb 15, 2026
4f375fc
Submodule Sync
KrisPowers Feb 15, 2026
ea02db6
Fixed Supply Chain Security test failing at SBOM Generation; Granted …
KrisPowers Feb 15, 2026
aace746
Added Submodule Override; Fixed CodeQL package-lock.json error
KrisPowers Feb 15, 2026
8bbbfe5
Submodule Sync Crash fix; Zero Day Monitoring Ln 200 & Ln 210 crash e…
KrisPowers Feb 15, 2026
e851f1b
Crash issue with workflows, crashing on submodule scan
KrisPowers Feb 15, 2026
bdbdcb6
Same crash error as the last commit, new fix
KrisPowers Feb 15, 2026
8eea854
Submodule Sync (docs)
KrisPowers Feb 15, 2026
1bdcb3b
Fixed Insecure temporary file #2
KrisPowers Feb 15, 2026
0548d14
Removed Web Submodules, later addition, added github release backups
KrisPowers Feb 17, 2026
b3a5e2f
Added Github Release backups; removed web submodules
KrisPowers Feb 17, 2026
ba41851
Docs Submodule Sync
KrisPowers Feb 17, 2026
f8f5352
Replaced async factory with constructor-based API; added RPS benchmar…
KrisPowers Feb 19, 2026
998d038
Removed Redirect Middleware; use res.redirect(...) instead
KrisPowers Feb 19, 2026
5adef5e
Code Quality Review: removed unused imports
KrisPowers Feb 19, 2026
a6b8c41
Code Qulaity Review: Removed unused imports, updated isAI, isBot, & i…
KrisPowers Feb 19, 2026
8131d7f
Potential fix for code scanning alert no. 13: Disabling certificate v…
KrisPowers Feb 19, 2026
37bb7b7
Potential fix for code scanning alert no. 12: Disabling certificate v…
KrisPowers Feb 19, 2026
d9a4691
Potential fix for code scanning alert no. 11: Disabling certificate v…
KrisPowers Feb 19, 2026
715f22c
Potential fix for code scanning alert no. 10: Disabling certificate v…
KrisPowers Feb 19, 2026
5b0a35f
Potential fix for code scanning alert no. 9: Workflow does not contai…
KrisPowers Feb 19, 2026
5d6c18a
Code Quality Reviews: Workflow targeted review
KrisPowers Feb 20, 2026
8f4a787
Disabling certificate validation #10
KrisPowers Feb 20, 2026
364df0d
Potential fix for pull request finding 'Unused variable, import, func…
KrisPowers Feb 20, 2026
6a4de83
Migrated from MIT License to Apache 2.0
KrisPowers Feb 21, 2026
33a2c31
Merge branch 'v1.x' of https://github.com/TrivaJS/triva into v1.x
KrisPowers Feb 21, 2026
5a3ed2a
Submodule Sync
KrisPowers Feb 21, 2026
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
220 changes: 220 additions & 0 deletions .github/archived-workflows/auto-backup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
name: Automatic Repository Backup

on:
push:
branches:
- '**' # All branches
pull_request:
types: [opened, synchronize, reopened]
branches:
- '**'

permissions:
contents: write
pull-requests: read

jobs:
backup-on-push:
name: Backup on Push
runs-on: ubuntu-latest
if: github.event_name == 'push'

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history

- name: Get commit information
id: commit-info
run: |
COMMIT_SHA="${{ github.sha }}"
SHORT_SHA="${COMMIT_SHA:0:7}"
COMMIT_MSG=$(git log -1 --pretty=%s)
COMMIT_DATE=$(git log -1 --pretty=%ci)
BRANCH_NAME="${GITHUB_REF##*/}"

echo "sha=$COMMIT_SHA" >> $GITHUB_OUTPUT
echo "short_sha=$SHORT_SHA" >> $GITHUB_OUTPUT
echo "message=$COMMIT_MSG" >> $GITHUB_OUTPUT
echo "date=$COMMIT_DATE" >> $GITHUB_OUTPUT
echo "branch=$BRANCH_NAME" >> $GITHUB_OUTPUT

- name: Create backup zip
run: |
# Create backup directory structure
mkdir -p backups/push

# Create zip of entire repository (excluding .git and backups)
zip -r "backups/push/${{ steps.commit-info.outputs.sha }}.zip" . \
-x ".git/*" \
-x "backups/*" \
-x "node_modules/*" \
-x ".github/*"

# Create metadata file
cat > "backups/push/${{ steps.commit-info.outputs.sha }}.json" << EOF
{
"commit_sha": "${{ steps.commit-info.outputs.sha }}",
"short_sha": "${{ steps.commit-info.outputs.short_sha }}",
"commit_message": "${{ steps.commit-info.outputs.message }}",
"commit_date": "${{ steps.commit-info.outputs.date }}",
"branch": "${{ steps.commit-info.outputs.branch }}",
"author": "${{ github.actor }}",
"backup_date": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
"backup_type": "push",
"event": "${{ github.event_name }}"
}
EOF

- name: Get backup size
id: backup-size
run: |
SIZE=$(ls -lh "backups/push/${{ steps.commit-info.outputs.sha }}.zip" | awk '{print $5}')
echo "size=$SIZE" >> $GITHUB_OUTPUT

- name: Commit backup to repository
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"

# Add backup files
git add backups/push/${{ steps.commit-info.outputs.sha }}.zip
git add backups/push/${{ steps.commit-info.outputs.sha }}.json

# Commit with informative message
git commit -m "🔄 Backup: ${{ steps.commit-info.outputs.short_sha }} (${{ steps.backup-size.outputs.size }})" \
-m "Branch: ${{ steps.commit-info.outputs.branch }}" \
-m "Commit: ${{ steps.commit-info.outputs.message }}" \
-m "Date: ${{ steps.commit-info.outputs.date }}"

- name: Push backup
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

- name: Log backup creation
run: |
echo "✅ Backup created successfully"
echo " Commit: ${{ steps.commit-info.outputs.short_sha }}"
echo " Size: ${{ steps.backup-size.outputs.size }}"
echo " Location: backups/push/${{ steps.commit-info.outputs.sha }}.zip"

backup-on-pr:
name: Backup on Pull Request
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'

steps:
- name: Checkout PR head
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Get PR information
id: pr-info
run: |
COMMIT_SHA="${{ github.event.pull_request.head.sha }}"
SHORT_SHA="${COMMIT_SHA:0:7}"
PR_NUMBER="${{ github.event.pull_request.number }}"
PR_TITLE="${{ github.event.pull_request.title }}"
PR_BRANCH="${{ github.event.pull_request.head.ref }}"
PR_BASE="${{ github.event.pull_request.base.ref }}"

echo "sha=$COMMIT_SHA" >> $GITHUB_OUTPUT
echo "short_sha=$SHORT_SHA" >> $GITHUB_OUTPUT
echo "number=$PR_NUMBER" >> $GITHUB_OUTPUT
echo "title=$PR_TITLE" >> $GITHUB_OUTPUT
echo "branch=$PR_BRANCH" >> $GITHUB_OUTPUT
echo "base=$PR_BASE" >> $GITHUB_OUTPUT

- name: Create backup zip
run: |
# Create backup directory structure
mkdir -p backups/pull_request

# Create zip of entire repository
zip -r "backups/pull_request/${{ steps.pr-info.outputs.sha }}.zip" . \
-x ".git/*" \
-x "backups/*" \
-x "node_modules/*" \
-x ".github/*"

# Create metadata file
cat > "backups/pull_request/${{ steps.pr-info.outputs.sha }}.json" << EOF
{
"commit_sha": "${{ steps.pr-info.outputs.sha }}",
"short_sha": "${{ steps.pr-info.outputs.short_sha }}",
"pr_number": ${{ steps.pr-info.outputs.number }},
"pr_title": "${{ steps.pr-info.outputs.title }}",
"pr_branch": "${{ steps.pr-info.outputs.branch }}",
"base_branch": "${{ steps.pr-info.outputs.base }}",
"author": "${{ github.actor }}",
"backup_date": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
"backup_type": "pull_request",
"event": "${{ github.event_name }}"
}
EOF

- name: Get backup size
id: backup-size
run: |
SIZE=$(ls -lh "backups/pull_request/${{ steps.pr-info.outputs.sha }}.zip" | awk '{print $5}')
echo "size=$SIZE" >> $GITHUB_OUTPUT

- name: Checkout base branch
run: |
git fetch origin ${{ steps.pr-info.outputs.base }}:${{ steps.pr-info.outputs.base }}
git checkout ${{ steps.pr-info.outputs.base }}

- name: Commit backup to base branch
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"

# Add backup files
git add backups/pull_request/${{ steps.pr-info.outputs.sha }}.zip
git add backups/pull_request/${{ steps.pr-info.outputs.sha }}.json

# Commit with informative message
git commit -m "🔄 PR Backup: #${{ steps.pr-info.outputs.number }} - ${{ steps.pr-info.outputs.short_sha }} (${{ steps.backup-size.outputs.size }})" \
-m "PR: ${{ steps.pr-info.outputs.title }}" \
-m "Branch: ${{ steps.pr-info.outputs.branch }} → ${{ steps.pr-info.outputs.base }}" \
-m "Commit: ${{ steps.pr-info.outputs.sha }}"

- name: Push backup
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ steps.pr-info.outputs.base }}

- name: Comment on PR with backup info
uses: actions/github-script@v7
with:
script: |
const comment = `## 💾 Backup Created

A backup of this PR has been automatically created:

- **Commit:** \`${{ steps.pr-info.outputs.short_sha }}\`
- **Size:** ${{ steps.backup-size.outputs.size }}
- **Location:** \`backups/pull_request/${{ steps.pr-info.outputs.sha }}.zip\`

This backup can be used to restore the exact state of the code at this point.`;

github.rest.issues.createComment({
issue_number: ${{ steps.pr-info.outputs.number }},
owner: context.repo.owner,
repo: context.repo.repo,
body: comment
});

- name: Log backup creation
run: |
echo "✅ PR Backup created successfully"
echo " PR: #${{ steps.pr-info.outputs.number }}"
echo " Commit: ${{ steps.pr-info.outputs.short_sha }}"
echo " Size: ${{ steps.backup-size.outputs.size }}"
echo " Location: backups/pull_request/${{ steps.pr-info.outputs.sha }}.zip"
Loading
Loading