Harden CI: Artifactory OIDC, uv, PyPI Trusted Publishing#535
Open
MichaelGHSeg wants to merge 3 commits into
Open
Harden CI: Artifactory OIDC, uv, PyPI Trusted Publishing#535MichaelGHSeg wants to merge 3 commits into
MichaelGHSeg wants to merge 3 commits into
Conversation
- Add Artifactory OIDC composite action for build-time dep resolution - Replace main.yml + tests.yml with fork-aware ci.yml (uv, SHA-pinned) - Add deploy.yml: PyPI Trusted Publishing, PEP 740 attestations, no stored tokens - Migrate setup.py to pyproject.toml (hatchling) + uv.lock - Update devbox.json to use uv - Update e2e-tests.yml: remove E2E_TESTS_TOKEN, SHA-pin actions, fork-aware
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/actions/artifactory-oidc/composite action — exchanges GitHub OIDC token for short-lived Artifactory access token, configuresUV_INDEX_URL/PIP_INDEX_URLforvirtual-pypi-thirdpartymain.yml+tests.ymlwithci.yml— fork-aware runner selection, Artifactory resolution on same-repo PRs, SHA-pinned actions, uv-based test matrix (Python 3.9–3.13)deploy.yml— PyPI Trusted Publishing (OIDC, no stored token), PEP 740 attestations, gated behindenvironment: pypisetup.py→pyproject.toml(hatchling) +uv.lockdevbox.jsonto use uve2e-tests.yml— removeE2E_TESTS_TOKEN(sdk-e2e-tests going public), SHA-pin actions, fork-awareTest plan
ubuntu-latest, public PyPI)uv sync --frozenpasses against committeduv.locksegmentio/analytics-python, workflow:deploy.yml, environment:pypi)pypiGitHub environment with protection rulesARTIFACTORY_URLrepository variable