Skip to content

feat(jenkins): add revoke_api_token() and revoke_all_api_tokens()#1097

Closed
clintonsteiner wants to merge 11 commits intopycontribs:masterfrom
clintonsteiner:feature/api-token-revocation
Closed

feat(jenkins): add revoke_api_token() and revoke_all_api_tokens()#1097
clintonsteiner wants to merge 11 commits intopycontribs:masterfrom
clintonsteiner:feature/api-token-revocation

Conversation

@clintonsteiner
Copy link
Copy Markdown
Collaborator

POST to ApiTokenProperty/revoke with tokenUuid, and ApiTokenProperty/revokeAll to revoke all tokens for the current user. Mirrors the pattern of generate_new_api_token().

Systests verify a specific token UUID is removed and that revokeAll leaves an empty token list.

clintonsteiner and others added 11 commits March 24, 2026 23:13
* Fix Docker publish action pin and drop Codacy config

* Remove remaining Codacy config
* Fix Docker publish action pin and drop Codacy config

* Remove remaining Codacy config

* Fix Docker build-push action pin
* Fix Docker publish action pin and drop Codacy config

* uv sync -U: fix requests vuln
…contribs#1087)

Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.5.0 to 2.6.1.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](softprops/action-gh-release@a06a81a...153bb8e)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 2.6.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…tribs#1089)

Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.9.0 to 7.0.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@4f58ea7...d08e5c3)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…1088)

Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 7.3.0 to 7.6.0.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](astral-sh/setup-uv@eac588a...37802ad)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 7.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…contribs#1090)

Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.10.0 to 4.0.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](docker/setup-buildx-action@b5ca514...4d04d5d)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ibs#1086)

Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5.5.1 to 6.0.0.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](docker/metadata-action@8e5442c...030e881)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: clintonsteiner <47841949+clintonsteiner@users.noreply.github.com>
POST to ApiTokenProperty/revoke with tokenUuid, and
ApiTokenProperty/revokeAll to revoke all tokens for the current user.
Mirrors the pattern of generate_new_api_token().

Systests verify a specific token UUID is removed and that revokeAll
leaves an empty token list.
@clintonsteiner
Copy link
Copy Markdown
Collaborator Author

Superseded by #1114, which consolidates the overlapping Jenkins admin/API changes into one merge block.

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