このバージョンの GitHub Enterprise はこの日付をもって終了となりました: 2021-09-23. 重大なセキュリティの問題に対してであっても、パッチリリースは作成されません。 パフォーマンスの向上、セキュリティの改善、新機能のためには、最新バージョンのGitHub Enterpriseにアップグレードしてください。 アップグレードに関する支援については、GitHub Enterprise supportに連絡してください。

Customizing GitHub-hosted runners

You can install additional software on GitHub-hosted runners as a part of your workflow.

ノート: GitHubホストランナーは、現在GitHub Enterprise Serverでサポートされていません。 GitHubパブリックロードマップで、計画されている将来のサポートに関する詳しい情報を見ることができます。

If you require additional software packages on GitHub-hosted runners, you can create a job that installs the packages as part of your workflow.

To see which packages are already installed by default, see "Preinstalled software."

This guide demonstrates how to create a job that installs additional software on a GitHub-hosted runner.

Installing software on Ubuntu runners

The following example demonstrates how to install an apt package as part of a job.

name: Build on Ubuntu on: push jobs: build: runs-on: ubuntu-latest steps: - name: Check out repository code uses: actions/checkout@v2 - name: Install jq tool run: | sudo apt-get update sudo apt-get install jq 

Note: Always run sudo apt-get update before installing a package. In case the apt index is stale, this command fetches and re-indexes any available packages, which helps prevent package installation failures.

Installing software on macOS runners

The following example demonstrates how to install Brew packages and casks as part of a job.

name: Build on macOS on: push jobs: build: runs-on: macos-latest steps: - name: Check out repository code uses: actions/checkout@v2 - name: Install GitHub CLI run: | brew update brew install gh  - name: Install Microsoft Edge run: | brew update brew install --cask microsoft-edge 

Installing software on Windows runners

The following example demonstrates how to use Chocolatey to install the GitHub CLI as part of a job.

name: Build on Windows on: push jobs: build: runs-on: windows-latest steps: - run: choco install gh - run: gh version 

問題がまだ解決していませんか?