Skip to content

Add pristine-ubuntu-action to hosted runners - #101

Draft
lengau with Copilot wants to merge 2 commits into
mainfrom
copilot/use-pristine-ubuntu-action
Draft

Add pristine-ubuntu-action to hosted runners#101
lengau with Copilot wants to merge 2 commits into
mainfrom
copilot/use-pristine-ubuntu-action

Conversation

Copilot AI commented Dec 6, 2025

Copy link
Copy Markdown
Contributor

Prevent GitHub-hosted runner updates from breaking workflows by cleaning up pre-installed bloat (15-20 GiB freed).

Changes

  • Added lengau/pristine-ubuntu-action@v0 as first step in setup-python-runner/action.yaml
  • Conditionally runs only on GitHub-hosted Linux runners: runner.os == 'Linux' && runner.environment == 'github-hosted'
  • Self-hosted runners automatically skip this step

Affected Workflows

Applies to all workflows using setup-python-runner:

  • test-python.yaml (reusable workflow)
  • self-test-setup.yaml
  • Any downstream callers
steps:
  - name: Pristine Ubuntu
    if: ${{ runner.os == 'Linux' && runner.environment == 'github-hosted' }}
    uses: lengau/pristine-ubuntu-action@v0
  - name: Start apt update
    # ... rest of setup

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/lengau/pristine-ubuntu-action
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)
  • https://api.github.com/repos/lengau/pristine-ubuntu-action/tags
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Use the pristine-ubuntu action on hosted runners</issue_title>
<issue_description>### What needs to get done

On hosted runners we should use a version of https://github.com/lengau/pristine-ubuntu-action/.

Why it needs to get done

Prevent updated runners from breaking us yet again. </issue_description>

<agent_instructions>That action should be the first thing that's run on the github-hosted runners. It should not run on self-hosted runners at all.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: lengau <4305943+lengau@users.noreply.github.com>
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.

Use the pristine-ubuntu action on hosted runners

2 participants