Skip to content

ci: lock workflow dependencies with GitHub's actions.lock - #1487

Open
coconux3 wants to merge 1 commit into
AgentOps-AI:mainfrom
coconux3:feature/lock-workflow-dependencies
Open

coconux3 wants to merge 1 commit into
AgentOps-AI:mainfrom
coconux3:feature/lock-workflow-dependencies

Conversation

@coconux3

Copy link
Copy Markdown

📥 Pull Request

📘 Description

The release workflow (python-publish.yml) publishes agentops to PyPI. Its deploy job holds PYPI_API_TOKEN and TEST_PYPI_API_TOKEN (plus id-token: write), and in that same job it runs astral-sh/setup-uv@v5, a tag that can be moved to other code at any time. If it is, that code runs next to the PyPI token. docker-mcp-publish.yml has the same pattern with DOCKERHUB_TOKEN and the Docker actions on @v3/@v5.

This PR adds GitHub's workflow dependency lockfile (.github/workflows/actions.lock), generated with gh actions-lock. It records the commit behind every action (13 actions + 1 transitive, across the 9 workflows) and GitHub checks it at run time, so a moved tag can't change what runs.

  • Adds .github/workflows/actions.lock.
  • Narrows refs to exact releases, for example astral-sh/setup-uv@v5 → @v5.4.2 and docker/login-action@v3 → @v3.7.0. Only uses: lines change, no workflow logic.

Not covered by a lockfile: uv pip install build in the release job resolves the latest build at each run.

🧪 Testing

  • gh actions-lock --verify: "All 9 workflows valid".
  • git diff: 0 changed lines outside uses: (9 workflows + actions.lock).

Found by Plumber's analysis, reviewed and submitted by me.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant