GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Replace deprecated `readthedocs/actions/preview` · Issue #587 · python/core-workflow

Replace deprecated readthedocs/actions/preview #587

New issue
Copy link
New issue
Copy link
Closed
Closed
Replace deprecated readthedocs/actions/preview#587
Copy link
Assignees
JacobCoffee
Labels
infrastructure

Description

@ezio-melotti
ezio-melotti
opened on Nov 10, 2025
Issue body actions

As I was reviewing the python/cpython workflows for security issues, I noticed that documentation-links.yml uses pull_request_target, which is potentially dangerous:

  • https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/
  • Analyze and document the security implications of pull_request_target trigger readthedocs/actions#45

This is apparently required by readthedocs/actions/preview in order to edit the first PR message and add the link to the doc preview.

However I also noticed that readthedocs/actions/preview is now deprecated and that its README states:

Warning

This action is deprecated and it shouldn't be used.
This feature was included in the Read the Docs application itself.
For more information, check our documentation.

As an alternative they suggest to connect their GitHub app and use that instead. Instead of editing the first comment, the app will add a comment which will list and link to changed/added/deleted files.
Note that the app is still in beta.

If we switch to the app we can stop using the deprecated action get rid of the documentation-links.yml workflow and pull_request_target use.

I brought this up to @hugovk attention, and he suggested to try the app on one of the other (smaller) repos first:

  • devguide: devguide#1713
  • peps
  • python-docs-theme
  • docs-community

If it works fine and we are happy with it, we can then update all the other repos (including cpython).

  • cpython

cc @humitos

Reacted by Hugo van Kemenade, Seth Larson and Mike Fiedler

Activity

  1. ezio-melotti
    added
    infrastructure
    on Nov 10, 2025
  2. hugovk commented on Nov 10, 2025

    @hugovk
    hugovk
    on Nov 10, 2025
    Member
    More actions

    The links to the changed files looks handy:

    Image
    Reacted by Ezio Melotti, Ege Akman and Stan Ulbrych
  3. StanFromIreland commented on Nov 10, 2025

    @StanFromIreland
    StanFromIreland
    on Nov 10, 2025
    Member
    More actions

    I’m happy to do this if no one else is doing it.

  4. AA-Turner commented on Nov 10, 2025

    @AA-Turner
    AA-Turner
    on Nov 10, 2025
    Member
    More actions

    Auto-bot-comment spam on PRs is very annoying. Can we keep the feature of only adding a couple of lines to the PR body itself?

    A

    Reacted by Stan Ulbrych and Petr Viktorin
  5. hugovk commented on Nov 29, 2025

    @hugovk
    hugovk
    on Nov 29, 2025
    Member
    More actions

    Given that:

    • pull_request_target can be insecure
    • pull_request_target was exploited in the (ongoing?) Shai-Hulud 2 attack
      • For example, see "Why did it happen?" at https://posthog.com/blog/nov-24-shai-hulud-attack-post-mortem
    • despite GitHub making it simpler soon, it still wouldn't have prevented all of the attack, and GitHub admits there's still an elevated risk
    • reasoning about these edge cases is complex, it's easier to replace pull_request_target
    • we already have plenty of bots commenting (Bedevere, Miss Islington, CLA bot) on cpython PRs

    I'm in favour replacing the workflows with the app, to at least test it out.

    Otherwise, let's just remove the workflows. We can still access the docs preview via the status checks, although less convenient.

    cc @sethmlarson re: security stuff

    Reacted by Seth Larson
  6. sethmlarson commented on Dec 1, 2025

    @sethmlarson
    sethmlarson
    on Dec 1, 2025
    More actions

    @hugovk @ezio-melotti Thanks for the analysis, yes let's remove this deprecated workflow and replace it with the application if that's a suitable replacement.

    Reacted by Hugo van Kemenade
    Reacted by Ezio Melotti
  7. hugovk commented on Dec 9, 2025

    @hugovk
    hugovk
    on Dec 9, 2025
    Member
    More actions

    PR for the devguide: python/devguide#1713

  8. hugovk commented on Mar 1, 2026

    @hugovk
    hugovk
    on Mar 1, 2026
    Member
    More actions

    Let's continue with this.

    @JacobCoffee I've invited you to https://app.readthedocs.org/projects/pep-previews/ and https://app.readthedocs.org/projects/python-docs-theme-previews/

    No rush, please could you also migrate those?


    I don't have access to https://app.readthedocs.org/projects/docs-community/

    @AA-Turner Please could you add JacobCoffee and hugovk?

    Reacted by Seth Larson
  9. encukou commented on Mar 2, 2026

    @encukou
    encukou
    on Mar 2, 2026
    Member
    More actions

    Please could you add JacobCoffee and hugovk?

    I've added you.

    Reacted by Hugo van Kemenade
  10. AA-Turner commented on Mar 3, 2026

    @AA-Turner
    AA-Turner
    on Mar 3, 2026
    Member
    More actions

    Sorry for the delay! Thanks Petr, looks like Hugo has accepted and the invitation has been sent to Jacob.

    A

    Reacted by Hugo van Kemenade
  11. hugovk commented on Mar 3, 2026

    @hugovk
    hugovk
    on Mar 3, 2026
    Member
    More actions

    Let's also do CPython now as well, we don't need to wait longer. This one can be first.

    @JacobCoffee I've invited you to https://app.readthedocs.org/projects/cpython-previews/

    Reacted by Seth Larson, Manuel Kaufmann and Zachary Ware
  12. sethmlarson
    assigned
    JacobCoffee
    on Apr 20, 2026
  13. JacobCoffee commented on Apr 27, 2026

    @JacobCoffee
    JacobCoffee
    on Apr 27, 2026
    Member
    More actions

    tried this today, only seeing devguide as admin-able projects @hugovk - maybe invites expired? sorry about htat

  14. hugovk commented on Apr 27, 2026

    @hugovk
    hugovk
    on Apr 27, 2026
    Member
    More actions

    Yeah, they only last two weeks. No problem, re-sent! And for the others, but CPython is most important. Thanks!

  15. JacobCoffee commented on Apr 28, 2026

    @JacobCoffee
    JacobCoffee
    on Apr 28, 2026
    Member
    More actions

    these are all done now on the RtD side, sorry for delay

    individual repos will need their GHA workflows updated when available

    Reacted by Hugo van Kemenade
    Reacted by Seth Larson
  16. hugovk commented on Apr 28, 2026

    @hugovk
    hugovk
    on Apr 28, 2026
    Member
    More actions

    Thanks!

    Removing the old workflow:

    • CPython Replace deprecated action with RtD app cpython#149111
    • PEPs Infra: replace deprecated action with RtD app peps#4946
    • python-docs-theme Replace deprecated action with RtD app python-docs-theme#308
    • docs-community Replace deprecated action with RtD app docs-community#189
  17. hugovk commented on Apr 29, 2026

    @hugovk
    hugovk
    on Apr 29, 2026
    Member
    More actions

    All done, thanks all!

    Reacted by Ezio Melotti
  18. hugovk
    closed this as completedon Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @JacobCoffee
    JacobCoffee

Labels

infrastructure

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.