Skip to content

Commit a6f3474

Browse files
Merge branch 'main' into dependabot/cargo/bots/echidnabot/cargo-e3be83c1e1
2 parents 23b9cfc + e01c959 commit a6f3474

3 files changed

Lines changed: 41 additions & 10 deletions

File tree

‎.github/workflows/repo-integrity-guard.yml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,21 @@ jobs:
6363
done
6464
exit $status
6565
66+
- name: Source files must not be patch fragments
67+
run: |
68+
set -euo pipefail
69+
status=0
70+
while IFS= read -r -d '' file; do
71+
first_content=$(sed -n '/[^[:space:]]/{p;q;}' "$file")
72+
case "$first_content" in
73+
'@@ '*|'*** Begin Patch'*|'diff --git '*)
74+
echo "::error file=${file}::Source file begins with patch syntax: ${first_content}"
75+
status=1
76+
;;
77+
esac
78+
done < <(git ls-files -z -- '*.rs' '*.ex' '*.exs' '*.res' '*.js' '*.ts' '*.py' '*.sh')
79+
exit "$status"
80+
6681
- name: Mass-deletion tripwire
6782
env:
6883
EVENT: ${{ github.event_name }}

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# IDE
1616
.idea/
1717
.vscode/
18+
.claude/worktrees/
1819
*.swp
1920
*.swo
2021
*~

‎SECURITY.md‎

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,36 @@
11
<!-- SPDX-License-Identifier: MPL-2.0 -->
22

3-
# Security Policy
3+
# Security policy
44

5-
## Supported versions
5+
## Reporting a vulnerability
66

7-
The `main` branch is the supported version of this project.
7+
Please report suspected vulnerabilities privately through
8+
[GitHub private vulnerability reporting](https://github.com/hyperpolymath/gitbot-fleet/security/advisories/new).
9+
Do not disclose a vulnerability in a public issue, pull request, discussion, or
10+
social-media post before a coordinated fix is available.
811

9-
## Reporting a vulnerability
12+
Include the affected component and revision, the expected impact, reproduction
13+
steps, and a minimal proof of concept where possible. Please avoid accessing,
14+
modifying, or deleting data beyond what is necessary to demonstrate the issue,
15+
and do not perform denial-of-service testing.
16+
17+
We aim to acknowledge a report within 48 hours, provide an initial assessment
18+
within seven days, and send status updates at least weekly while remediation is
19+
in progress. Disclosure timing will be coordinated with the reporter; the
20+
default target is within 90 days of the initial report.
21+
22+
## Supported versions
23+
24+
Security fixes are made on the default branch. Tagged releases are supported
25+
only when explicitly identified as maintained in their release notes.
1026

11-
Please report security vulnerabilities through GitHub's private vulnerability
12-
reporting feature:
27+
## Safe harbour
1328

14-
1. Open the repository's **Security** tab.
15-
2. Select **Report a vulnerability**.
16-
3. Provide enough detail for the maintainers to reproduce and assess the issue.
29+
We will not pursue legal action against researchers who act in good faith,
30+
follow this policy, avoid privacy and service disruption, and allow reasonable
31+
time for remediation before disclosure.
1732

18-
Do not open a public issue for a security vulnerability.
33+
## Security measures
1934

2035
The project's detailed security measures and cryptographic standards are
2136
documented in [SECURITY.adoc](SECURITY.adoc).

0 commit comments

Comments
 (0)