You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
On our selfhosted github actions runners, the action fails because we have /tmp mounted noexec, a security requirement.
To use rustup manually on the instance, we could use the TMPDIR env var to define an alternative temporary directory
TMPDIR=/opt/tmp rustup.sh
On a runner, there's an env var RUNNER_TEMP that is a temporary directory for this run. In workflow example, I show how we use this to work around our noexec setting on tmp.
It would be great if the workflow could just use RUNNER_TEMP by default. Setting the environment variable TMPDIR equal to RUNNER_TEMP should be enough to make this work automatically.
Workflow example
jobs:
tests:
name: Lint and testruns-on: [self-hosted]steps:
- name: Check out the repositoryuses: actions/[email protected]
- name: Setup rustuses: actions-rs/toolchain@v1env:
TMPDIR: ${{ runner.temp }}
The text was updated successfully, but these errors were encountered:
Motivation
On our selfhosted github actions runners, the action fails because we have /tmp mounted noexec, a security requirement.
To use rustup manually on the instance, we could use the TMPDIR env var to define an alternative temporary directory
TMPDIR=/opt/tmp rustup.sh
On a runner, there's an env var
RUNNER_TEMP
that is a temporary directory for this run. In workflow example, I show how we use this to work around our noexec setting on tmp.It would be great if the workflow could just use RUNNER_TEMP by default. Setting the environment variable TMPDIR equal to RUNNER_TEMP should be enough to make this work automatically.
Workflow example
The text was updated successfully, but these errors were encountered: