Skip to content

Commit ccb8fb2

Browse files
committed
ci: support main and PR checks in the private repository
1 parent 2ed8ccb commit ccb8fb2

6 files changed

Lines changed: 15 additions & 4 deletions

File tree

‎.github/workflows/codeql.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ concurrency:
1818
jobs:
1919
analyze:
2020
name: Analyze ${{ matrix.language }}
21+
# Private code scanning requires an Advanced Security subscription.
22+
if: ${{ !github.event.repository.private }}
2123
runs-on: ubuntu-latest
2224
permissions:
2325
contents: read

‎.github/workflows/zizmor.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ jobs:
2929
uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2
3030
with:
3131
persona: pedantic
32+
advanced-security: ${{ !github.event.repository.private }}
33+
annotations: ${{ github.event.repository.private }}

‎DEVELOPMENT.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Use the Rust version declared in `Cargo.toml`, CPython 3.11 or newer, and the ma
66

77
Git is a test reference implementation and fixture-creation tool, not a runtime implementation dependency. Tests must create disposable repositories and isolate inherited Git configuration and environment variables.
88

9-
The current task is local only. Rust dependency downloads needed for builds are authorized, but PyPI interaction, account writes, pushes, PRs, and publication are not. Use cached dependencies when practical. For tools whose default cache is outside the writable workspace, choose a task-owned cache under `/private/tmp` or the repository.
9+
GitHub CI setup is authorized for this repository, including pushing the committed project and CI fixes to `origin/main`. Package publication, PyPI interaction, and changes to the upstream Gitoxide remote remain outside the task. Use cached dependencies when practical. For tools whose default cache is outside the writable workspace, choose a task-owned cache under `/private/tmp` or the repository.
1010

1111
## Native upstream prerequisite
1212

@@ -53,7 +53,9 @@ Keep Python type information synchronized with bindings. Distinguish byte conten
5353

5454
## CI and artifacts
5555

56-
The GitHub workflows are configuration for future repository checks. They use pinned actions, minimal token permissions, and checkouts without persisted credentials. A stable `Tests pass` check collects the required CI results.
56+
The GitHub workflows run on pushes to `main` and pull requests targeting `main`, with manual dispatch also available. They use pinned actions, minimal token permissions, and checkouts without persisted credentials. A stable `Tests pass` check collects the required CI results.
57+
58+
Private repositories run zizmor with workflow annotations instead of code-scanning uploads. CodeQL runs only for public repositories; enabling it here while private requires GitHub Advanced Security and an update to its job condition.
5759

5860
The artifact workflow builds distribution candidates for review. It does not upload to PyPI, create a GitHub release, or change package/account settings. Ordinary CPython and free-threaded CPython require their respective ABI configurations. Its initial Linux wheels target the build host (`linux_*`); they are not certified manylinux or musllinux wheels. Test an installed wheel and a source-distribution build, and add the appropriate Linux compatibility environment, before describing these candidates as release-ready.
5961

‎agents.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
## Current session boundary
3434

3535
- Work locally only: no PyPI interaction, account writes, push, publication, remote release, or pull request unless the user explicitly changes this boundary. Rust dependency downloads needed to build this project are authorized.
36+
- The user subsequently authorized GitHub CI setup for this repository: push the committed project and CI fixes to `origin/main`, configure Actions, and verify runs on main and PRs. This does not authorize package publication or changes to the upstream Gitoxide remote.
3637
- Small necessary upstream changes may be prepared locally in `/Users/byron/dev/github.com/GitoxideLabs/gitoxide.pygix`. Preserve that prepared branch and unrelated changes. Inspect its applicable instructions and Tix state before changing history.
3738
- Earlier permission to push upstream changes or create a draft PR is superseded by the local-only instruction. If later reauthorized, use `pr-from-session`, target `origin`, disclose Codex authorship, and create a draft PR only.
3839
- Use available local caches when practical. Do not use a Python package index to install missing build tools; report missing prerequisites accurately.

‎docs/implementation-plan.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ The steps below describe the complete intended project. The implementation is sp
3131
- License: `MIT OR Apache-2.0`; author and copyright holder: Sebastian Thiel.
3232
- Work locally only. No PyPI interaction, account writes, push, PR, publication, or remote release during the current task. Rust dependency downloads needed for builds are authorized.
3333

34+
After the initial implementation, the user authorized CI setup for this repository,
35+
including pushes to `origin/main` and verification of main/PR workflows. Package
36+
publication and changes to the upstream Gitoxide remote remain outside that scope.
37+
3438
## Upstream integration
3539

3640
Small necessary upstream changes may be prepared in the existing local `gitoxide.pygix` worktree. Its starting base was `f819565c2c`, on branch `pygix`. Inspect its current state before working; this record is not permission to reset or rewrite it.

‎docs/validation.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ metadata was checked against the declared Rust minimum; that does not replace
6565
an actual MSRV build. Initial Linux artifact candidates use host-platform tags,
6666
not manylinux or musllinux certification.
6767

68-
No CI workflow was triggered, and nothing was pushed, published, or created on
69-
PyPI. Three necessary upstream fixes remain local and are included as vendored
68+
The initial implementation was validated locally before CI was activated.
69+
Nothing was published or created on PyPI. Three necessary upstream fixes remain local and are included as vendored
7070
source patches; their provenance is recorded in [DEVELOPMENT.md](../DEVELOPMENT.md).
7171
The [API coverage record](api-coverage.md) lists unsupported native overloads,
7272
callback interfaces, and operations unavailable in the pinned Gitoxide engine.

0 commit comments

Comments
 (0)