These extra logs are enabled by setting secrets or variables in the repository containing the workflow, so the same permissions requirements will apply:
- GitHub 上で個人用アカウント リポジトリのシークレットまたは変数を作成するユーザーは、リポジトリのオーナーである必要があります。 GitHub 上で組織用リポジトリのシークレットまたは変数を作成するユーザーは、
admin
アクセス権を持っている必要があります。 最後に、個人用アカウント リポジトリまたは組織用リポジトリのシークレットまたは変数を REST API 経由で作成するユーザーには、コラボレーター アクセス権が必要です。 - 個人用アカウントのリポジトリ内の環境でシークレットか変数を作成するユーザーは、そのリポジトリのオーナーである必要があります。 組織用リポジトリ内の環境用にシークレットか変数を作成するユーザーには、
admin
のアクセス権が必要です。 環境について詳しくは、「デプロイに環境の使用」を参照してください。 - Organization のオーナーは、Organization レベルでシークレットまたは変数を作成できます。
For more information on setting secrets and variables, see "GitHub Actions でのシークレットの使用" and "変数."
Additionally, anyone who has access to run a workflow can enable runner diagnostic logging and step debug logging for a workflow re-run. For more information, see "ワークフローとジョブの再実行."
Enabling runner diagnostic logging
Runner diagnostic logging provides additional log files that contain information about how a runner is executing a job. Two extra log files are added to the log archive:
- The runner process log, which includes information about coordinating and setting up runners to execute jobs.
- The worker process log, which logs the execution of a job.
- To enable runner diagnostic logging, set the following secret or variable in the repository that contains the workflow:
ACTIONS_RUNNER_DEBUG
totrue
. If both the secret and variable are set, the value of the secret takes precedence over the variable. - To download runner diagnostic logs, download the log archive of the workflow run. The runner diagnostic logs are contained in the
runner-diagnostic-logs
folder. For more information on downloading logs, see "Using workflow run logs."
Enabling step debug logging
Step debug logging increases the verbosity of a job's logs during and after a job's execution.
- To enable step debug logging, set the following secret or variable in the repository that contains the workflow:
ACTIONS_STEP_DEBUG
totrue
. If both the secret and variable are set, the value of the secret takes precedence over the variable. - After setting the secret or variable, more debug events are shown in the step logs. For more information, see "Using workflow run logs."