Skip to content
Open
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
8 changes: 6 additions & 2 deletions docs/ci-supply-chain-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,18 @@ this policy if the rule changes.

2. Replace the workflow SHAs with the resolved commits and keep the
`base-bash-libs` checkout pinned to the commit Base CI should test against.
3. Run:
3. When updating Gitleaks, update `GITLEAKS_VERSION`, its release artifact URL,
and the matching `GITLEAKS_LINUX_X64_SHA256` value together. Verify the
checksum before allowing the security job to use the new binary.
4. Run:

```bash
BASE_CLI_SOURCE_DIR=../base-cli/lib/python \
PYTHONPATH=../base-cli/lib/python:lib/python:cli/python \
python -m pytest cli/python/base_setup/tests/test_ci_supply_chain_policy.py -q
```

4. Let pull request CI run the pinned workflows before merging.
5. Let pull request CI run the pinned workflows before merging.

## Python Dependencies

Expand Down Expand Up @@ -75,3 +78,4 @@ The security job must keep these checks:
- `pip-audit` over `requirements-dev.txt`
- ShellCheck errors over tracked shell entry points and scripts
- ShellCheck warnings as non-blocking signal
- Checksum-pinned Gitleaks over committed history through `tests/scan-secrets.sh`
Loading