GeezerVison is showing github.com — Add organization automation baseline · PastureStack/.github@966304b
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/bug_report.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 11 | 11 | attributes: | 12 | 12 | label: Version or revision | 13 | 13 | description: Provide the release, tag, image digest, or commit SHA. | 14 | | - placeholder: v1.6.x-pasture.1 or commit SHA | | 14 | + placeholder: 1.6.57 or commit SHA | 15 | 15 | validations: | 16 | 16 | required: true | 17 | 17 | - type: input | |
Collapse file Copy file name to clipboardExpand all lines: .github/PULL_REQUEST_TEMPLATE.md +4-2Lines changed: 4 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 |
| 5 | 5 | ## Compatibility and migration impact | 6 | 6 |
| 7 | | -<!-- Identify affected Rancher versions, components, APIs, images, data, or deployment paths. --> | | 7 | +<!-- Identify affected upstream versions, components, APIs, images, data, or deployment paths. --> | 8 | 8 |
| 9 | 9 | ## Verification | 10 | 10 |
| | 16 | 16 | - [ ] Imported history and published upstream tags were not rewritten. | 17 | 17 | - [ ] New third-party code or artifacts have traceable source and compatible licensing. | 18 | 18 | - [ ] Tests or reproducibility checks cover the changed behavior. | 19 | | -- [ ] Logs, fixtures, and screenshots contain no secrets or private data. | | 19 | +- [ ] Source, documentation, logs, fixtures, and screenshots contain no secrets, personal account details, or private data. | | 20 | +- [ ] New action references follow the organization Actions allowlist and pinning policy. | | 21 | +- [ ] User-facing releases and image tags use ordinary incrementing semantic versions. | 20 | 22 | - [ ] Security, upgrade, rollback, and release-note impact were considered. | 21 | 23 | - [ ] Documentation was updated, or no documentation change is needed. |
Collapse file Copy file name to clipboard +66Lines changed: 66 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +name: Repository integrity | | 2 | + | | 3 | +on: | | 4 | + workflow_call: | | 5 | + pull_request: | | 6 | + push: | | 7 | + branches: | | 8 | + - main | | 9 | + workflow_dispatch: | | 10 | + | | 11 | +permissions: | | 12 | + contents: read | | 13 | + | | 14 | +concurrency: | | 15 | + group: repository-integrity-${{ github.workflow }}-${{ github.ref }} | | 16 | + cancel-in-progress: true | | 17 | + | | 18 | +jobs: | | 19 | + integrity: | | 20 | + name: Repository integrity | | 21 | + runs-on: ubuntu-latest | | 22 | + timeout-minutes: 10 | | 23 | + steps: | | 24 | + - name: Check out full history | | 25 | + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | | 26 | + with: | | 27 | + fetch-depth: 0 | | 28 | + persist-credentials: false | | 29 | + | | 30 | + - name: Verify Git object integrity | | 31 | + shell: bash | | 32 | + run: git fsck --full --no-dangling | | 33 | + | | 34 | + - name: Verify required repository files | | 35 | + shell: bash | | 36 | + run: | | | 37 | + set -euo pipefail | | 38 | +
| | 39 | + if [[ ! -f README.md && ! -f README.rst && ! -f README ]]; then | | 40 | + echo "A clone-visible README is required." >&2 | | 41 | + exit 1 | | 42 | + fi | | 43 | +
| | 44 | + if [[ ! -f LICENSE && ! -f LICENSE.md && ! -f LICENSE.txt && ! -f COPYING ]]; then | | 45 | + echo "A repository license is required; organization defaults cannot supply one." >&2 | | 46 | + exit 1 | | 47 | + fi | | 48 | +
| | 49 | + - name: Reject oversized tracked files | | 50 | + shell: bash | | 51 | + run: | | | 52 | + set -euo pipefail | | 53 | +
| | 54 | + limit=$((95 * 1024 * 1024)) | | 55 | + failed=0 | | 56 | +
| | 57 | + while IFS= read -r -d '' file; do | | 58 | + [[ -f "$file" ]] || continue | | 59 | + size=$(stat -c '%s' -- "$file") | | 60 | + if (( size > limit )); then | | 61 | + printf 'Tracked file exceeds 95 MiB: %s (%s bytes)\n' "$file" "$size" >&2 | | 62 | + failed=1 | | 63 | + fi | | 64 | + done < <(git ls-files -z) | | 65 | +
| | 66 | + exit "$failed" |
Collapse file Copy file name to clipboardExpand all lines: SECURITY.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,7 @@ Each repository must publish its own supported-version statement before making a | 8 | 8 |
| 9 | 9 | - active migration branches receive best-effort security review; | 10 | 10 | - historical upstream tags are preserved but unsupported; and | 11 | | -- original Rancher 1.6 binaries and images remain end-of-life. | | 11 | +- original upstream binaries and images remain end-of-life. | 12 | 12 |
| 13 | 13 | ## Reporting a vulnerability | 14 | 14 |
| @@ -20,4 +20,4 @@ Maintainers will acknowledge a complete private report as soon as practical, coo | 20 | 20 |
| 21 | 21 | ## Scope | 22 | 22 |
| 23 | | -Reports about the PastureStack-maintained changes, build chain, releases, containers, and migration tooling are in scope. Vulnerabilities that affect unmodified upstream Rancher code may also need to be reported to the relevant upstream maintainer. | | 23 | +Reports about the PastureStack-maintained changes, build chain, releases, containers, and migration tooling are in scope. Vulnerabilities that affect unmodified upstream code may also need to be reported to the relevant upstream maintainer. |
Collapse file Copy file name to clipboard +29Lines changed: 29 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# GitHub automation baseline | | 2 | + | | 3 | +PastureStack uses GitHub's no-cost features for public repositories to reduce repetitive maintenance while keeping releases and deployments explicit. | | 4 | + | | 5 | +## Organization baseline | | 6 | + | | 7 | +- GitHub Actions is enabled for every repository. | | 8 | +- Repository workflows may use GitHub-owned actions and reusable workflows from `PastureStack/.github`. | | 9 | +- Workflow tokens are read-only by default. A job must declare any additional permission it needs. | | 10 | +- Artifacts and workflow logs are retained for 30 days. | | 11 | +- Workflows from first-time and external contributors require approval. | | 12 | +- Dependency graph, automatic dependency submission, Dependabot alerts, grouped security updates, secret scanning, push protection, malware alerts, and private vulnerability reporting are enabled where GitHub supports them. | | 13 | +- CodeQL default setup is used where a repository has a supported language. Reviewed advanced CodeQL workflows remain authoritative where present. | | 14 | + | | 15 | +## Continuous integration | | 16 | + | | 17 | +Repositories without a component-specific workflow call the reusable repository-integrity workflow in this repository. The shared workflow verifies Git objects, required clone-visible files, and GitHub's practical file-size limit. Component-specific build and test workflows remain in their own repositories because toolchains and compatibility requirements differ. | | 18 | + | | 19 | +Centralizing the baseline means a maintenance fix is made once instead of being copied into every repository. | | 20 | + | | 21 | +## Delivery and releases | | 22 | + | | 23 | +CI does not deploy to a production control plane. Release workflows may publish versioned GitHub Releases or GHCR images only after repository-specific build, test, license, provenance, rollback, and compatibility checks are defined. | | 24 | + | | 25 | +Published image tags and release versions use normal incrementing semantic versions. Digests and attestations remain machine-verifiable metadata and are not embedded in user-facing version strings. | | 26 | + | | 27 | +## Cost guardrails | | 28 | + | | 29 | +PastureStack uses standard GitHub-hosted runners for public repositories. Larger runners, GitHub Code Quality billing, paid private-repository security features, and automatic production deployment are outside this baseline. |
Collapse file Copy file name to clipboardExpand all lines: standards/repository.yml +6-1Lines changed: 6 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,12 @@ security: | 27 | 27 |
| 28 | 28 | actions: | 29 | 29 | artifact_retention_days: 30 | 30 | | - new_actions_pin: full-commit-sha | | 30 | + repository_policy: selected | | 31 | + github_owned_actions: true | | 32 | + verified_creator_actions: false | | 33 | + organization_reusable_workflows: PastureStack/.github@* | | 34 | + require_sha_pinning: false | | 35 | + new_external_actions_pin: full-commit-sha | 31 | 36 | imported_workflows_initial_state: review-before-enable | 32 | 37 |
| 33 | 38 | public_default_branch_rules: | |
|