# Pinning GNU Autotools using the GitHub container registry

**URL:** <https://discuss.python.org/t/pinning-gnu-autotools-using-the-github-container-registry/47437>\
**Category:** Core Workflow\
**Tags:** github, ci\
**Created:** [March 3, 2024, 12:30am UTC](https://discuss.python.org/t/pinning-gnu-autotools-using-the-github-container-registry/47437 "2024-03-03T00:30:32Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![EWDurbin](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/ewdurbin/32/3103_2.png) [@EWDurbin](https://discuss.python.org/u/EWDurbin)\
**Post date:** [September 25, 2024, 4:57pm UTC](https://discuss.python.org/t/pinning-gnu-autotools-using-the-github-container-registry/47437/21 "2024-09-25T16:57:57Z")

</div>

I can take a look a bit later, but my understanding is that a Personal Access Token should not be necessary, the Action should be able to publish packages to GHCR with its built in authentication if the correct permissions are set.

---

<div class="post-metadata">

**Author:** ![corona10](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/corona10/32/9943_2.png) [@corona10](https://discuss.python.org/u/corona10)\
**Post date:** [September 25, 2024, 5:03pm UTC](https://discuss.python.org/t/pinning-gnu-autotools-using-the-github-container-registry/47437/22 "2024-09-25T17:03:00Z")

</div>

> [@EWDurbin](#):
>
> GHCR

> **[Publishing and installing a package with GitHub Actions - GitHub Docs](https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#default-permissions-and-access-settings-for-packages-modified-through-workflows)**
>
> You can configure a workflow in GitHub Actions to automatically publish or install a package from GitHub Packages.

IIUC, Token would be necessary, I am also discussing with @ambv about it too.

---

<div class="post-metadata">

**Author:** ![AA-Turner](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/aa-turner/32/4979_2.png) [@AA-Turner](https://discuss.python.org/u/AA-Turner)\
**Post date:** [September 25, 2024, 5:48pm UTC](https://discuss.python.org/t/pinning-gnu-autotools-using-the-github-container-registry/47437/23 "2024-09-25T17:48:54Z")

</div>

@corona10 `secrets.GITHUB_TOKEN` should work. I implemented publishing to GHCR for Sphinx in [sphinx-docker-images/.github/workflows/build-ci.yml at master · sphinx-doc/sphinx-docker-images · GitHub](https://github.com/sphinx-doc/sphinx-docker-images/blob/master/.github/workflows/build-ci.yml), I’d be happy to help with the devcontainers publishing.

A

---

<div class="post-metadata">

**Author:** ![corona10](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/corona10/32/9943_2.png) [@corona10](https://discuss.python.org/u/corona10)\
**Post date:** [September 25, 2024, 5:54pm UTC](https://discuss.python.org/t/pinning-gnu-autotools-using-the-github-container-registry/47437/24 "2024-09-25T17:54:59Z")

</div>

Good, let me check!

---

<div class="post-metadata">

**Author:** ![corona10](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/corona10/32/9943_2.png) [@corona10](https://discuss.python.org/u/corona10)\
**Post date:** [September 25, 2024, 6:03pm UTC](https://discuss.python.org/t/pinning-gnu-autotools-using-the-github-container-registry/47437/25 "2024-09-25T18:03:19Z")

</div>

Cool it works!!

[https://github.com/python/cpython-devcontainers/pkgs/container/autoconf](https://github.com/python/cpython-devcontainers/pkgs/container/autoconf)

@EWDurbin @ambv okay we don’t need PAT token anymore 🙂

cc @erlendaasland @brettcannon

---

<div class="post-metadata">

**Author:** ![AA-Turner](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/aa-turner/32/4979_2.png) [@AA-Turner](https://discuss.python.org/u/AA-Turner)\
**Post date:** [September 25, 2024, 6:05pm UTC](https://discuss.python.org/t/pinning-gnu-autotools-using-the-github-container-registry/47437/26 "2024-09-25T18:05:27Z")

</div>

That link is a 404 for me.

---

<div class="post-metadata">

**Author:** ![corona10](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/corona10/32/9943_2.png) [@corona10](https://discuss.python.org/u/corona10)\
**Post date:** [September 25, 2024, 6:17pm UTC](https://discuss.python.org/t/pinning-gnu-autotools-using-the-github-container-registry/47437/27 "2024-09-25T18:17:20Z")

</div>

We may need to update visibility into the public by admins!

---

<div class="post-metadata">

**Author:** ![EWDurbin](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/ewdurbin/32/3103_2.png) [@EWDurbin](https://discuss.python.org/u/EWDurbin)\
**Post date:** [September 26, 2024, 12:00pm UTC](https://discuss.python.org/t/pinning-gnu-autotools-using-the-github-container-registry/47437/28 "2024-09-26T12:00:19Z")

</div>

Visibility set to public for autoconf and devcontainer!

---

<div class="post-metadata">

**Author:** ![corona10](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/corona10/32/9943_2.png) [@corona10](https://discuss.python.org/u/corona10)\
**Post date:** [October 9, 2024, 12:41am UTC](https://discuss.python.org/t/pinning-gnu-autotools-using-the-github-container-registry/47437/29 "2024-10-09T00:41:20Z")

</div>

During the sprint, I, @erlendaasland, and @brettcannon replaced the current container images to use our own images through [Replace container images to packages from cpython-devcontainers · Issue #124612 · python/cpython · GitHub](https://github.com/python/cpython/issues/124612)

Thanks to all the people supporting this task 🙂  
My next target is migrating the Gitlab CI repo to here. I will pile the new topic about this. If someone has an interest. Stay tuned! cc @barry

[Previous page](https://discuss.python.org/t/pinning-gnu-autotools-using-the-github-container-registry/47437.md?page=1)
