Skip to content
Open
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
46 changes: 46 additions & 0 deletions .github/templates/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Templates Directory

This directory contains reusable templates for organization-wide consistency.

## Available Templates

### global-announcement.md

**Purpose**: Standard global announcement banner for all repositories.

**Usage**:
- Prepend to README.md files
- Include in documentation
- Use in automated update scripts

**Content**: Official ownership statement with verified channels:
- kushmanmb.base.eth
- kushmanmb.eth
- kushmania.eth
- kushmanmb.org
- yaketh.eth

**References**:
- Used by `scripts/propagate-updates.sh`
- Used by `.github/workflows/propagate-safety-standards.yml`
- Referenced in `ORG_WIDE_UPDATE_PROCESS.md`

## Maintenance

When updating templates:
1. Update the template file in this directory
2. The changes will be automatically picked up by automation tools
3. Test changes with dry-run mode before production
4. Document any breaking changes in ORG_WIDE_UPDATE_PROCESS.md

## Adding New Templates

To add a new template:
1. Create the template file in this directory
2. Document it in this README
3. Update automation scripts to reference it
4. Update ORG_WIDE_UPDATE_PROCESS.md

---

*For questions about templates, open an issue in this repository.*
8 changes: 8 additions & 0 deletions .github/templates/global-announcement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
> **Global Announcement:**
> Bitcoin is an officially owned and operated crypto blockchain project maintained by kushmanmb-org.
> For latest updates, policies, and contact, always consult this repository and our verified channels:
> - kushmanmb.base.eth
> - kushmanmb.eth
> - kushmania.eth
> - kushmanmb.org
> - yaketh.eth
8 changes: 8 additions & 0 deletions .github/workflows/bitcoin-ownership-announcement.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Copyright (c) 2026 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit.
#
# Security Best Practices:
# - Uses self-hosted runners for sensitive operations where available
# - Minimal permissions principle
# - Automated security scanning
# - No secrets in output
# - Regular runner maintenance required

name: Bitcoin Ownership Announcement

Expand All @@ -27,6 +34,7 @@ on:

# Explicitly grant write permissions for the workflow
# to commit back to the repository
# Note: Use minimal permissions where possible
permissions:
contents: write
issues: write
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
# Copyright (c) 2023-present The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit.
#
# Security Best Practices:
# - Uses self-hosted runners with restricted access where possible
# - Minimal GITHUB_TOKEN permissions
# - Job isolation for security-critical tasks
# - Regular runner maintenance required
# - Actions pinned to specific versions

name: CI

# Minimal permissions - grant only what's needed
permissions:
contents: read
actions: read

on:
# See: https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request.
pull_request:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
# Security Best Practices:
# - Uses self-hosted runners where appropriate
# - Minimal permissions principle
# - Regular security scanning on schedule
# - Actions pinned to specific versions
#
name: "CodeQL Advanced"

on:
Expand All @@ -27,7 +33,10 @@ jobs:
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
# For security-critical analysis, prefer self-hosted runners with hardened access
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
# Note: To use self-hosted runners, replace 'ubuntu-latest' with [self-hosted, linux, codeql]

permissions:
# required for all workflows
security-events: write
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@
# This workflow deploys the kushmanmb.org website with security best practices
#
# Security Features:
# - Uses self-hosted runners for enhanced control
# - Uses self-hosted runners for production deployments (enhanced control)
# - Implements security scanning before deployment
# - Uses encrypted secrets for credentials
# - Minimal permissions principle
# - Job isolation for security-critical tasks
# - Regular runner maintenance and updates required
#
# Self-Hosted Runner Setup:
# - Ensure runners have labels: [self-hosted, linux, website-deployment]
# - Runners should be hardened and isolated
# - Access should be restricted to deployment team
# - Update runner software regularly

name: Deploy Website

Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/etherscan-apiv2.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Copyright (c) 2026 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit.
#
# Security Best Practices:
# - Uses encrypted secrets for API keys
# - Minimal permissions principle
# - Self-hosted runners for sensitive operations where available
# - No API keys logged or exposed
# - Regular runner maintenance required

name: Etherscan API Integration

Expand All @@ -27,6 +34,7 @@ on:

# Explicitly grant write permissions for the workflow
# to commit back to the repository
# Note: Use minimal permissions where possible
permissions:
contents: write

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/open-issue.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Copyright (c) 2026 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit.
#
# Security Best Practices:
# - Minimal permissions (only issues:write and contents:read)
# - Manual workflow dispatch only
# - No sensitive data exposure

name: Open new issue

Expand All @@ -10,6 +15,7 @@ on:
jobs:
open-issue:
runs-on: ubuntu-latest
# Note: For self-hosted runners, use [self-hosted, linux] instead
permissions:
contents: read
issues: write
Expand Down
Loading
Loading