Content-Length: 270174 | pFad | http://github.com/oauthlib/oauthlib/issues/913

49 GitHub · Where software is built
Skip to content

[drive-by] Insecure use of Trusted Publishing when uploading to PyPI from CI/CD #913

Open
@webknjaz

Description

@webknjaz

Currently, https://github.com/oauthlib/oauthlib/blob/master/.github/workflows/python-build.yml builds the dists in the same job as publishing. This gives transitive build deps OIDC privileges, that might lead to impersonation, privilege elevation etc.

TL;DR follow https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

Additionally, the if: clause is broken in the publishing job as it is always true due to }} being in the middle of the string. The ${{ ... }} wrapper can just be dropped.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/oauthlib/oauthlib/issues/913

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy