haskell / haskell/hackage-server

Trusted Publishing

Open
#1,443 12 comments 2 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
467
Forks
225
PR merge metrics
No merged PRs in 30d

Description

Support for [Trusted Publishing](https://repos.openssf.org/trusted-publishers-for-all-package-repositories) has become quite common among major package repositories, for example:
* [PyPI](https://docs.pypi.org/trusted-publishers/)
* [npm](https://docs.npmjs.com/trusted-publishers)
* [crates.io](https://crates.io/docs/trusted-publishing)

The benefits are well described in [Why Trusted Publishers](https://repos.openssf.org/trusted-publishers-for-all-package-repositories#why-trusted-publishers). For Hackage specifically:

* *Security*. The tokens issued by Hackage have unbounded lifetime and have overly broad permissions (capable of uploading to any package the user maintains). The trusted publishing model uses short-lived tokens which are tied to source repository and workflow.
* *Maintainer convenience*. Trusted publishing can be configured once in a set-and-forget fashion and should be more convenient than manually managing secrets. Support for trusted publishing could be integrated into existing workflows such as [haskell-actions/hackage-publish](https://github.com/haskell-actions/hackage-publish) for turn-key release automation.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.