Repository settings: protect main and version tags, turn on secret scanning and push protection

Open
#210 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
github, github-actions, python
Domain
devops, security

Research direction

Start by reviewing the repository's GitHub settings, existing workflows, and current leak scan; the issue does not name specific workflow files or CI test commands. A repository admin is needed to apply the branch and tag rulesets, security features, and Actions settings, and to add SECURITY.md and CODEOWNERS. Done means direct pushes to main and commits matching a test credential pattern are blocked, and pull requests with failing required checks cannot merge.

Written by the indexing model from the issue text.

Description

enhancement lead-only ready

Found in the 2026-11-29 whole-repo review. Verified through the GitHub API. Needs a repository admin.

Problem

This is a public repository and none of the workflow rules are enforced by GitHub itself:

  • main has no branch protection and there are no rulesets (anyone with write access, or a workflow token with write scope, can push straight to it)
  • nothing restricts who can create, move or delete v* tags, which trigger a release
  • secret scanning and push protection are disabled (the existing leak scan only runs after a push, when the secret is already public)
  • Dependabot security updates are disabled
  • the default workflow token permission is read/write, and Actions may approve pull requests
  • there is no SECURITY.md and private vulnerability reporting is off
  • no CODEOWNERS

Suggested fix

  • Ruleset on main: require a pull request and the CI checks (app, pipeline, e2e, containers build, security)
  • Tag ruleset: only admins create/delete v*
  • Enable secret scanning + push protection, Dependabot security updates, private vulnerability reporting
  • Default workflow token read-only; turn off "Actions can approve pull requests"
  • Add SECURITY.md and a CODEOWNERS covering .github/, infra/, scripts/
  • Check "automatically delete head branches" (four merged feature branches are still on the remote)

Acceptance criteria

  • A direct push to main is rejected; a PR with a red required check cannot merge
  • Pushing a commit containing a test credential pattern is blocked
Dominant language
Python
Stars
0
Forks
2
Avg merge
8h 26m
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TechTraverse/stac-higher

All issues in TechTraverse/stac-higher

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.