Skip to content
Closed
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
19 changes: 19 additions & 0 deletions .github/rulesets/Immutable-Tags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Immutable-Tags",
"target": "tag",
"enforcement": "active",
"conditions": {
"ref_name": {
"include": ["~ALL"],
"exclude": []
}
},
"bypass_actors": [],
"rules": [
{"type": "creation"},
{"type": "deletion"},
{"type": "non_fast_forward"},
{"type": "update"},
{"type": "required_signatures"}
]
}
44 changes: 44 additions & 0 deletions .github/rulesets/Optimus-Branch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "Optimus-Branch",
"target": "branch",
"enforcement": "active",
"conditions": {
"ref_name": {
"include": ["~DEFAULT_BRANCH"],
"exclude": []
}
},
"bypass_actors": [],
"rules": [
{
"type": "deletion"
},
{
"type": "non_fast_forward"
},
{
"type": "required_signatures"
},
{
"type": "pull_request",
"parameters": {
"required_approving_review_count": 2,
"dismiss_stale_reviews_on_push": true,
"require_code_owner_review": true,
"require_last_push_approval": true,
"required_review_thread_resolution": true,
"require_extra_approval_for_unattributed_changes": true,
"required_reviewers": [],
"allowed_merge_methods": []
}
},
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": true,
"do_not_enforce_on_create": false,
"required_status_checks": []
}
}
]
}
18 changes: 0 additions & 18 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,3 @@ labels:

# ─── Branch Protection ─────────────────────────────────────────────────────────

branches:
- name: "main"
protection:
required_pull_request_reviews:
required_approving_review_count: 1
dismiss_stale_reviews: true
require_code_owner_reviews: true
required_status_checks:
strict: true
contexts:
- "hypatia-scan"
- "codeql"
- "openssf-compliance"
enforce_admins: true
required_signatures: true
restrictions: null
allow_force_pushes: false
allow_deletions: false
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: MPL-2.0

Check warning on line 1 in .github/workflows/dependabot-automerge.yml

View workflow job for this annotation

GitHub Actions / Hypatia neurosymbolic scan

[hypatia] workflow .github/workflows/dependabot-automerge.yml references `secrets.*` but does not install `step-security/harden-runner` — no outbound-egress telemetry

Check warning on line 1 in .github/workflows/dependabot-automerge.yml

View workflow job for this annotation

GitHub Actions / Hypatia neurosymbolic scan

[hypatia] workflow .github/workflows/dependabot-automerge.yml references `secrets.*` but does not install `step-security/harden-runner` — no outbound-egress telemetry
# // Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
# SPDX-License-Identifier: MPL-2.0
#
Expand Down Expand Up @@ -42,7 +42,7 @@
types: [opened, reopened, synchronize]
permissions:
actions: read
contents: write # needed to enable auto-merge
contents: read # needed to enable auto-merge
pull-requests: write # needed to approve
# NB: keep narrow — do NOT add secrets: read or id-token: write here.
jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rhodibot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
types: [completed]
permissions:
actions: read
contents: write
contents: read
pull-requests: write
jobs:
rhodibot:
Expand Down
56 changes: 0 additions & 56 deletions .github/workflows/rust-ci.yml

This file was deleted.

Loading