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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install
run: |
python -m pip install --require-hashes -r requirements-ci.txt
python -m pip install --no-deps -e .
python -m pip install --no-deps --no-build-isolation -e .
- name: Test
run: pytest -q

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- CI: the setuptools build backend is in the hash-pinned `requirements-ci.txt`, and the project is installed with `--no-build-isolation`, so the build no longer downloads an unhashed setuptools.
- Action: `action.yml` installs runtime dependencies from the hash-pinned `requirements-action.txt` (`--require-hashes`, compiled from `requirements-action.in`), then CertClock itself with `--no-deps --no-build-isolation`.
- Dependabot: weekly Python updates (uv ecosystem) for `pyproject.toml`, `requirements-ci.in` and the hash-pinned `requirements-ci.txt`. `requirements-ci.txt` is now compiled from `requirements-ci.in` so Dependabot can recompile it with hashes.
- Dependencies: runtime, dev and build requirements in `pyproject.toml` are pinned to exact versions (`==`). CI installs from the hash-pinned `requirements-ci.txt` (`pip install --require-hashes`), then the project itself with `--no-deps`. Prompted by the malicious `agent-framework` 1.26.1/1.26.2 releases on PyPI ([MAL-2026-20101](https://osv.dev/vulnerability/MAL-2026-20101)); none of these projects depend on it.
- `certclock intune-connector` and `Get-CertClockIntuneConnector.ps1`: read-only export of the Certificate Connector for Microsoft Intune events (source `Microsoft-Intune-CertificateConnectors`) and a rating from the event IDs documented on Microsoft Learn: health upload 5000/5001/5002, `*Failure` and retry events. Exit 0/1/2. No message text is exported
Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ runs:
python-version: ${{ inputs.python-version }}
- name: Install CertClock
shell: bash
run: python -m pip install --quiet "${{ github.action_path }}"
env:
CC_ACTION_PATH: ${{ github.action_path }}
run: |
python -m pip install --quiet --require-hashes -r "$CC_ACTION_PATH/requirements-action.txt"
python -m pip install --quiet --no-deps --no-build-isolation "$CC_ACTION_PATH"
- name: Check certificates
id: check
shell: bash
Expand Down
6 changes: 6 additions & 0 deletions requirements-action.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Runtime dependencies for the composite action (action.yml), same exact pins as pyproject.toml,
# plus the setuptools build backend. requirements-action.txt is compiled from this file with uv;
# Dependabot (uv ecosystem) updates both.
cryptography==50.0.2
PyYAML==6.0.3
setuptools==84.2.1
248 changes: 248 additions & 0 deletions requirements-action.txt

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion requirements-ci.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Direct CI dependencies, same exact pins as pyproject.toml (runtime + dev extra).
# Direct CI dependencies, same exact pins as pyproject.toml (runtime, dev extra and the setuptools build backend).
# requirements-ci.txt is compiled from this file with uv; Dependabot (uv ecosystem) updates both.
cryptography==50.0.2
PyYAML==6.0.3
pytest==9.2.0
setuptools==84.2.1
4 changes: 4 additions & 0 deletions requirements-ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,7 @@ pyyaml==6.0.3 \
--hash=sha256:fa160448684b4e94d80416c0fa4aac48967a969efe22931448d853ada8baf926 \
--hash=sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0
# via -r requirements-ci.in
setuptools==84.2.1 \
--hash=sha256:3ff8b3b5492a0aa66960f4419365a86b84e013070d4313e4d4a6894f5d64d6bc \
--hash=sha256:ca140b45d5325a9478f880e351484f62fef15f336462e449ca0c03c873d589c2
# via -r requirements-ci.in
Loading