Skip to content
Merged
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
20 changes: 20 additions & 0 deletions .github/documentation-policy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"schema": 1,
"documents": [
{
"path": "CONTRACT.md",
"kind": "contract",
"purpose": "Define the public encoding, decoding, validation and error contracts."
},
{
"path": "SECURITY_MEMORY_MODEL.md",
"kind": "reference",
"purpose": "Explain sensitive-buffer ownership, cleanup guarantees and platform limits."
},
{
"path": "docs/protobuf.md",
"kind": "reference",
"purpose": "Describe the public protobuf contract and supported serialization formats."
}
]
}
2 changes: 1 addition & 1 deletion .github/workflows/android-runtime-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down
65 changes: 56 additions & 9 deletions .github/workflows/cla.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@ on:
types: [checks_requested]

permissions:
actions: write
checks: read
contents: write
pull-requests: write
statuses: write
contents: read

jobs:
CLAAssistant:
# This workflow uses repository write permissions and never checks out PR code.
cla-signatures:
# Only the signature action may update the signature branch, comment, and
# rerun a failed PR check. It never checks out or executes PR code.
# Filter comments here so ordinary issue and PR discussion does not start
# a runner. Only signature and recheck comments on PRs reach the action.
permissions:
actions: write
contents: write
pull-requests: write
if: >-
github.event_name != 'merge_group' &&
github.repository_owner == 'reallyme' &&
toJSON(github.event.repository.private) == 'false' &&
(github.event.repository.visibility == null || github.event.repository.visibility == 'public') &&
Expand All @@ -37,7 +39,6 @@ jobs:
timeout-minutes: 5
steps:
- name: Check contributor signatures
if: github.event_name == 'pull_request_target' || github.event_name == 'issue_comment'
uses: iainmcgin/cla-github-action@0d27e5a16278d4adb6b0c4b92f08ad27b0a21dc8 # v3.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -48,8 +49,21 @@ jobs:
allowlist: 'dependabot[bot],github-actions[bot],renovate[bot]'
require-opener-as-author: 'true'

cla-merge-queue:
# Queue validation only reads PR metadata and completed workflow runs.
permissions:
actions: read
contents: read
pull-requests: read
if: >-
github.event_name == 'merge_group' &&
github.repository_owner == 'reallyme' &&
toJSON(github.event.repository.private) == 'false' &&
(github.event.repository.visibility == null || github.event.repository.visibility == 'public')
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Verify CLA checks for queued pull requests
if: github.event_name == 'merge_group'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_SHA: ${{ github.event.merge_group.base_sha }}
Expand Down Expand Up @@ -116,3 +130,36 @@ jobs:
exit 1
fi
done

CLAAssistant:
# Keep one required check name while isolating the write-capable action
# from the read-only queue check. Failed or skipped required work fails closed.
needs: [cla-signatures, cla-merge-queue]
permissions:
contents: none
if: >-
always() &&
github.repository_owner == 'reallyme' &&
toJSON(github.event.repository.private) == 'false' &&
(github.event.repository.visibility == null || github.event.repository.visibility == 'public') &&
(github.event_name != 'issue_comment' ||
(github.event.issue.pull_request &&
(github.event.comment.body == 'recheck' ||
contains(github.event.comment.body, 'I have read the CLA Document and I hereby sign the CLA'))))
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Require the applicable CLA result
env:
SIGNATURE_RESULT: ${{ needs.cla-signatures.result }}
QUEUE_RESULT: ${{ needs.cla-merge-queue.result }}
shell: bash
run: |
set -euo pipefail
case "$GITHUB_EVENT_NAME" in
pull_request_target|issue_comment)
[[ "$SIGNATURE_RESULT" == success && "$QUEUE_RESULT" == skipped ]] ;;
merge_group)
[[ "$QUEUE_RESULT" == success && "$SIGNATURE_RESULT" == skipped ]] ;;
*) exit 1 ;;
esac
2 changes: 1 addition & 1 deletion .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/crates-package-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand All @@ -78,6 +78,12 @@ jobs:
with:
toolchain: 1.100.0

- name: Install dependency maintenance tools
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
with:
tool: cargo-audit@0.23.0,cargo-outdated@0.19.0
fallback: none

- name: Authenticate release-readiness package
run: node scripts/run_pinned_release_readiness.mjs --check-pins

Expand Down Expand Up @@ -128,7 +134,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/crates-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/kotlin-android-package-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand All @@ -80,6 +80,12 @@ jobs:
with:
toolchain: 1.100.0

- name: Install dependency maintenance tools
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
with:
tool: cargo-audit@0.23.0,cargo-outdated@0.19.0
fallback: none

- name: Authenticate release-readiness package
run: node scripts/run_pinned_release_readiness.mjs --check-pins

Expand Down Expand Up @@ -150,7 +156,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down Expand Up @@ -214,7 +220,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down Expand Up @@ -306,7 +312,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/kotlin-android-package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/npm-package-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand All @@ -78,6 +78,12 @@ jobs:
with:
toolchain: 1.100.0

- name: Install dependency maintenance tools
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
with:
tool: cargo-audit@0.23.0,cargo-outdated@0.19.0
fallback: none

- name: Authenticate release-readiness package
run: node scripts/run_pinned_release_readiness.mjs --check-pins

Expand Down Expand Up @@ -134,7 +140,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npm-package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-readiness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/swift-package-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand All @@ -78,6 +78,12 @@ jobs:
with:
toolchain: 1.100.0

- name: Install dependency maintenance tools
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
with:
tool: cargo-audit@0.23.0,cargo-outdated@0.19.0
fallback: none

- name: Authenticate release-readiness package
run: node scripts/run_pinned_release_readiness.mjs --check-pins

Expand Down Expand Up @@ -134,7 +140,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/swift-package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: reallyme/release-readiness
ref: e323ea52bc1f76e67df03fc95e19d596fb54bd03
ref: 16aab5287de498e858ff3b85d9e66d7c9f7ebb74
path: .release-readiness
persist-credentials: false

Expand Down
5 changes: 5 additions & 0 deletions scripts/check_ignored_files.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ try {
}
const { assertRepositoryPrivacy, assertPushPrivacy } =
await import("../.release-readiness/scripts/repository-privacy.mjs");
const { assertDocumentationPolicy } =
await import("../.release-readiness/scripts/documentation-policy.mjs");
if (args[0] === "--pre-push") {
assertPushPrivacy({ updates: readInput() });
} else if (args[0] === "--history") {
Expand All @@ -77,6 +79,9 @@ try {
assertPushPrivacy({ updates: `HEAD ${tip} refs/heads/main ${"0".repeat(tip.length)}\n` });
} else {
assertRepositoryPrivacy();
// Match the exact staged bytes that Git will commit, including policy
// declarations; unstaged edits must not hide a staged work report.
assertDocumentationPolicy({ staged: true });
}
console.log("tracked files respect committed ignore rules");
} catch (error) {
Expand Down
Loading
Loading