Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Replace Travis CI with GitHub Actions using OIDC credentials#81

Merged
tnikolova82 merged 3 commits into
masterSAP/cf-python-logging-support:masterfrom
migrate-to-github-actions-oidcSAP/cf-python-logging-support:migrate-to-github-actions-oidcCopy head branch name to clipboard
May 26, 2026
Merged

Replace Travis CI with GitHub Actions using OIDC credentials#81
tnikolova82 merged 3 commits into
masterSAP/cf-python-logging-support:masterfrom
migrate-to-github-actions-oidcSAP/cf-python-logging-support:migrate-to-github-actions-oidcCopy head branch name to clipboard

Conversation

@tnikolova82

Copy link
Copy Markdown
Contributor

Summary

  • Removes .travis.yml which relied on long-lived secrets for CI authentication
  • Adds GitHub Actions CI workflow (.github/workflows/ci.yml) that runs tests on Python 3.8–3.12 and lint, using only the built-in short-lived GITHUB_TOKEN
  • Adds GitHub Actions publish workflow (.github/workflows/publish.yml) that uses OIDC trusted publishing to PyPI — no stored API tokens needed

Motivation

Addresses the OpenSSF Scorecard finding: "Prefer short-lived OIDC credentials over long-lived secrets"

Setup Required

To enable PyPI OIDC publishing, configure a trusted publisher on pypi.org:

  • Owner: SAP
  • Repository: cf-python-logging-support
  • Workflow: publish.yml
  • Environment: pypi

Migrate CI from Travis CI to GitHub Actions to eliminate long-lived
secrets. The new workflows use only short-lived OIDC credentials:
- ci.yml: runs tests and lint with minimal permissions
- publish.yml: publishes to PyPI via OIDC trusted publisher (no tokens)

@ivanovac ivanovac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tnikolova82 tnikolova82 merged commit 7e4a6a5 into master May 26, 2026
7 checks passed
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.