Skip to content

Commit 50378e6

Browse files
committed
Adopt managed CodeQL and security baseline
1 parent 12e1d9f commit 50378e6

6 files changed

Lines changed: 92 additions & 51 deletions

File tree

.github/dependabot.yml

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,42 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "nuget"
4-
directory: "/"
5-
schedule:
6-
interval: "weekly"
7-
open-pull-requests-limit: 10
8-
- package-ecosystem: "github-actions"
9-
directory: "/"
10-
schedule:
11-
interval: "weekly"
12-
open-pull-requests-limit: 10
3+
- package-ecosystem: nuget
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 10
8+
groups:
9+
nuget-root-patch-minor:
10+
patterns:
11+
- '*'
12+
update-types:
13+
- patch
14+
- minor
15+
ignore:
16+
- dependency-name: '*'
17+
update-types:
18+
- version-update:semver-major
19+
labels:
20+
- dependencies
21+
- type:chore
22+
- area:ci
23+
- package-ecosystem: github-actions
24+
directory: /
25+
schedule:
26+
interval: weekly
27+
open-pull-requests-limit: 10
28+
groups:
29+
github-actions-root-patch-minor:
30+
patterns:
31+
- '*'
32+
update-types:
33+
- patch
34+
- minor
35+
ignore:
36+
- dependency-name: '*'
37+
update-types:
38+
- version-update:semver-major
39+
labels:
40+
- dependencies
41+
- type:chore
42+
- area:ci

.github/workflows/codecov-analytics.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ on:
99
branches: [main, master]
1010
pull_request:
1111
branches: [main, master]
12+
merge_group:
13+
types: [checks_requested]
1214
workflow_dispatch:
1315

1416
jobs:
1517
shared-codecov-analytics:
1618
permissions:
1719
contents: read
1820
id-token: write
19-
uses: Prekzursil/quality-zero-platform/.github/workflows/reusable-codecov-analytics.yml@0e7482ede8d157d5183d41dfe2b575560fbea222
21+
uses: Prekzursil/quality-zero-platform/.github/workflows/reusable-codecov-analytics.yml@d7a94db4ab57df42940832cf67b730c673af7da6
2022
with:
2123
repo_slug: ${{ github.repository }}
2224
event_name: ${{ github.event_name }}

.github/workflows/codeql.yml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
name: CodeQL
22

3-
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
8-
schedule:
9-
- cron: "0 6 * * 1"
10-
113
permissions:
124
actions: read
135
contents: read
146
security-events: write
157

8+
on:
9+
push:
10+
branches: [main, master]
11+
pull_request:
12+
branches: [main, master]
13+
merge_group:
14+
types: [checks_requested]
15+
schedule:
16+
- cron: "23 3 * * 1"
17+
workflow_dispatch:
18+
1619
jobs:
17-
analyze:
18-
runs-on: windows-latest
19-
steps:
20-
- uses: actions/checkout@v6
21-
- uses: github/codeql-action/init@v4
22-
with:
23-
languages: csharp
24-
- uses: actions/setup-dotnet@v5
25-
with:
26-
dotnet-version: 8.0.x
27-
- name: Autobuild
28-
uses: github/codeql-action/autobuild@v4
29-
- uses: github/codeql-action/analyze@v4
20+
codeql:
21+
permissions:
22+
actions: read
23+
contents: read
24+
security-events: write
25+
uses: Prekzursil/quality-zero-platform/.github/workflows/reusable-codeql.yml@d7a94db4ab57df42940832cf67b730c673af7da6
26+
with:
27+
repo_slug: ${{ github.repository }}
28+
event_name: ${{ github.event_name }}
29+
sha: ${{ github.event.pull_request.head.sha || github.sha }}
30+
platform_repository: Prekzursil/quality-zero-platform
31+
platform_ref: main

.github/workflows/quality-zero-gate.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ on:
88
branches: [main, master]
99
pull_request:
1010
branches: [main, master]
11+
merge_group:
12+
types: [checks_requested]
1113
workflow_dispatch:
1214

1315
jobs:
1416
aggregate-gate:
1517
permissions:
1618
contents: read
17-
uses: Prekzursil/quality-zero-platform/.github/workflows/reusable-quality-zero-gate.yml@0e7482ede8d157d5183d41dfe2b575560fbea222
19+
uses: Prekzursil/quality-zero-platform/.github/workflows/reusable-quality-zero-gate.yml@d7a94db4ab57df42940832cf67b730c673af7da6
1820
with:
1921
repo_slug: ${{ github.repository }}
2022
event_name: ${{ github.event_name }}

.github/workflows/quality-zero-platform.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
contents: read
2121
id-token: write
2222
pull-requests: write
23-
uses: Prekzursil/quality-zero-platform/.github/workflows/reusable-scanner-matrix.yml@0e7482ede8d157d5183d41dfe2b575560fbea222
23+
uses: Prekzursil/quality-zero-platform/.github/workflows/reusable-scanner-matrix.yml@d7a94db4ab57df42940832cf67b730c673af7da6
2424
with:
2525
repo_slug: ${{ github.repository }}
2626
event_name: ${{ github.event_name }}

SECURITY.md

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
11
# Security Policy
22

3-
## Supported versions
3+
## Supported Versions
44

5-
Until a stable versioning policy is established, only the latest tagged release is considered supported for security fixes.
5+
Security fixes are applied to the `main` branch.
66

7-
## Reporting a vulnerability
7+
| Version | Supported |
8+
| --- | --- |
9+
| `main` | :white_check_mark: |
10+
| Other branches/tags | :x: |
811

9-
Please do **not** open public GitHub issues for sensitive security reports.
12+
## Reporting a Vulnerability
1013

11-
Instead:
14+
Please do **not** open public GitHub issues for undisclosed security findings.
1215

13-
1. open a private security advisory if available for the repository, or
14-
2. contact the maintainer directly with a concise reproduction and impact summary
16+
Use GitHub Private Vulnerability Reporting for this repository:
17+
<https://github.com/Prekzursil/codex-session-manager/security/advisories/new>
1518

16-
Include:
19+
If private advisory reporting is unavailable, contact the maintainer privately on GitHub (`@Prekzursil`).
1720

18-
- affected version or commit
19-
- reproduction steps
20-
- expected vs actual behavior
21-
- whether the issue can expose private local session content, metadata, or unsafe maintenance behavior
21+
When reporting, include:
2222

23-
## Security expectations for contributors
23+
- the affected component, file, workflow, or dependency
24+
- the exact commit, branch, or release if known
25+
- clear reproduction or proof-of-concept steps
26+
- impact details covering confidentiality, integrity, or availability
27+
- any suggested mitigation if known
2428

25-
- do not add telemetry or network sync without explicit review
26-
- do not weaken maintenance confirmations or checkpoint creation
27-
- do not make live Codex SQLite state writable in v1
28-
- do not add real personal session data to tests, docs, fixtures, or screenshots
29+
## Disclosure Expectations
30+
31+
- Initial acknowledgment: best effort within 3 business days.
32+
- Triage update: best effort within 7 business days.
33+
- Coordinated disclosure is expected; please allow time to investigate and patch before public disclosure.

0 commit comments

Comments
 (0)