Skip to content

Commit 87776f2

Browse files
authored
Hack week 2025: remove unneeded FBV instances (5) - Actions (#53895)
1 parent 29ce876 commit 87776f2

File tree

21 files changed

+14
-94
lines changed

21 files changed

+14
-94
lines changed

content/actions/hosting-your-own-runners/managing-self-hosted-runners/adding-self-hosted-runners.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@ For information on supported operating systems for self-hosted runners, or using
2828
2929
You can set up automation to scale the number of self-hosted runners. For more information, see [AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners/autoscaling-with-self-hosted-runners).
3030

31-
{% ifversion actions-single-use-tokens %}
32-
3331
You can register ephemeral runners that perform a single job before the registration is cleaned up by using just-in-time runner registration. For more information, see [AUTOTITLE](/actions/security-guides/security-hardening-for-github-actions#using-just-in-time-runners).
3432

35-
{% endif %}
36-
3733
## Prerequisites
3834

3935
{% data reusables.actions.self-hosted-runners-prerequisites %}

content/actions/hosting-your-own-runners/managing-self-hosted-runners/autoscaling-with-self-hosted-runners.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,8 @@ The {% data variables.product.prodname_actions %} service will then automaticall
4848
> [!NOTE]
4949
> If a job is labeled for a certain type of runner, but none matching that type are available, the job does not immediately fail at the time of queueing. Instead, the job will remain queued until the 24 hour timeout period expires.
5050
51-
{% ifversion actions-single-use-tokens %}
52-
5351
Alternatively, you can create ephemeral, just-in-time runners using the REST API. For more information, see [AUTOTITLE](/rest/actions/self-hosted-runners).
5452

55-
{% endif %}
56-
5753
## Controlling runner software updates on self-hosted runners
5854

5955
By default, self-hosted runners will automatically perform a software update whenever a new version of the runner software is available. If you use ephemeral runners in containers then this can lead to repeated software updates when a new runner version is released. Turning off automatic updates allows you to update the runner version on the container image directly on your own schedule.

content/actions/hosting-your-own-runners/managing-self-hosted-runners/removing-self-hosted-runners.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ shortTitle: Remove self-hosted runners
2020
> [!NOTE]
2121
> * {% data reusables.actions.self-hosted-runner-removal-impact %}
2222
> * {% data reusables.actions.self-hosted-runner-auto-removal %}
23-
{%- ifversion actions-single-use-tokens %}
2423
> * {% data reusables.actions.jit-runner-removal %}
25-
{%- endif %}
2624
2725
To remove a self-hosted runner from a user repository you must be the repository owner. Organization owners{% ifversion custom-org-roles %} and users with the "Manage organization runners and runner groups" permission{% endif %} can remove a runner from a repository in the organization. {% ifversion custom-org-roles %}For more information about custom organization roles, see [AUTOTITLE](/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles).{% endif %}
2826

@@ -42,9 +40,7 @@ For information about how to remove a self-hosted runner with the REST API, see
4240
> [!NOTE]
4341
> * {% data reusables.actions.self-hosted-runner-removal-impact %}
4442
> * {% data reusables.actions.self-hosted-runner-auto-removal %}
45-
{%- ifversion actions-single-use-tokens %}
4643
> * {% data reusables.actions.jit-runner-removal %}
47-
{%- endif %}
4844
4945
To remove a self-hosted runner from an organization, you must be an organization owner{% ifversion custom-org-roles %} or have the "Manage organization runners and runner groups" permission{% endif %}. We recommend that you also have access to the self-hosted runner machine. For information about how to remove a self-hosted runner with the REST API, see [AUTOTITLE](/rest/actions/self-hosted-runners).
5046

@@ -67,11 +63,8 @@ If you use {% data variables.product.prodname_ghe_cloud %}, you can also remove
6763
> [!NOTE]
6864
> * {% data reusables.actions.self-hosted-runner-removal-impact %}
6965
> * {% data reusables.actions.self-hosted-runner-auto-removal %}
70-
{%- ifversion actions-single-use-tokens %}
7166
> * {% data reusables.actions.jit-runner-removal %}
7267
73-
{%- endif %}
74-
7568
To remove a self-hosted runner from an enterprise, you must be an enterprise owner. We recommend that you also have access to the self-hosted runner machine. For information about how to remove a self-hosted runner with the REST API, see the enterprise endpoints in the [{% data variables.product.prodname_actions %} REST API](/rest/actions/self-hosted-runners).
7669

7770
{% data reusables.actions.self-hosted-runner-reusing %}

content/actions/security-for-github-actions/security-guides/automatic-token-authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ The following table shows the permissions granted to the `GITHUB_TOKEN` by defau
9292
| {% endif %} |
9393
| issues | read/write | none | read |
9494
| metadata | read | read | read |
95-
| packages | read/write | {% ifversion actions-default-workflow-permissions-restrictive %}read{% else %}none{% endif %} | read |
95+
| packages | read/write | read | read |
9696
| pages | read/write | none | read |
9797
| pull-requests | read/write | none | read |
9898
| repository-projects | read/write | none | read |

content/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,6 @@ You should also consider the environment of the self-hosted runner machines:
352352

353353
Some customers might attempt to partially mitigate these risks by implementing systems that automatically destroy the self-hosted runner after each job execution. However, this approach might not be as effective as intended, as there is no way to guarantee that a self-hosted runner only runs one job. Some jobs will use secrets as command-line arguments which can be seen by another job running on the same runner, such as `ps x -w`. This can lead to secret leakages.
354354

355-
{% ifversion actions-single-use-tokens %}
356-
357355
### Using just-in-time runners
358356

359357
To improve runner registration security, you can use the REST API to create ephemeral, just-in-time (JIT) runners. These self-hosted runners perform at most one job before being automatically removed from the repository, organization, or enterprise. For more information about configuring JIT runners, see [AUTOTITLE](/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-organization).
@@ -367,8 +365,6 @@ Once you have the config file from the REST API response, you can pass it to the
367365
./run.sh --jitconfig ${encoded_jit_config}
368366
```
369367

370-
{% endif %}
371-
372368
### Planning your management strategy for self-hosted runners
373369

374370
A self-hosted runner can be added to various levels in your {% data variables.product.prodname_dotcom %} hierarchy: the enterprise, organization, or repository level. This placement determines who will be able to manage the runner:

content/actions/sharing-automations/required-workflows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ redirect_from:
1616

1717
## Overview
1818

19-
You can configure a workflow that must run in repositories in an organization for all pull requests opened against {% ifversion actions-required-workflow-improvements %}any target branch{% else %}the default branch{% endif %}. Required workflows allow you to implement organization-wide CI/CD policies that apply to current and future repositories. A required workflow is triggered by {% ifversion actions-required-workflow-improvements %}`pull_request` and `pull_request_target` default events{% else %}pull request events{% endif %} and appears as a required status check, which blocks the ability to merge the pull request until the required workflow succeeds.
19+
You can configure a workflow that must run in repositories in an organization for all pull requests opened against any target branch. Required workflows allow you to implement organization-wide CI/CD policies that apply to current and future repositories. A required workflow is triggered by `pull_request` and `pull_request_target` default events and appears as a required status check, which blocks the ability to merge the pull request until the required workflow succeeds.
2020

2121
Required workflows are not the same as reusable workflows. Reusable workflows can be called by another workflow. Required workflows are enforced on repositories by an organization owner.
2222

content/actions/sharing-automations/reusing-workflows.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ Called workflows that are owned by the same user or organization{% ifversion ghe
104104
* You can call a maximum of 20 unique reusable workflows from a single workflow file.
105105
{% endif %}
106106
{% ifversion private-actions %}{% else %}- Reusable workflows stored within a private repository can only be used by workflows within the same repository.{% endif %}
107-
{% ifversion actions-reusable-workflow-matrix %}{% else %}* The `strategy` property is not supported in any job that calls a reusable workflow.{% endif %}
108107
* Any environment variables set in an `env` context defined at the workflow level in the caller workflow are not propagated to the called workflow. For more information, see [AUTOTITLE](/actions/learn-github-actions/variables) and [AUTOTITLE](/actions/learn-github-actions/contexts#env-context).
109108
* Similarly, environment variables set in the `env` context, defined in the called workflow, are not accessible in the `env` context of the caller workflow. Instead, you must use outputs of the reusable workflow. For more information, see [Using outputs from a reusable workflow](#using-outputs-from-a-reusable-workflow).
110109
* To reuse variables in multiple workflows, set them at the organization, repository, or environment levels and reference them using the `vars` context. For more information see [AUTOTITLE](/actions/learn-github-actions/variables) and [AUTOTITLE](/actions/learn-github-actions/contexts#vars-context).
@@ -142,16 +141,11 @@ You can define inputs and secrets, which can be passed from the caller workflow
142141

143142
{% endraw %}
144143
For details of the syntax for defining inputs and secrets, see [`on.workflow_call.inputs`](/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_callinputs) and [`on.workflow_call.secrets`](/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_callsecrets).
145-
{% ifversion actions-inherit-secrets-reusable-workflows %}
146144
1. In the reusable workflow, reference the input or secret that you defined in the `on` key in the previous step.
147145

148146
> [!NOTE]
149147
> If the secrets are inherited by using `secrets: inherit` in the calling workflow, you can reference them even if they are not explicitly defined in the `on` key. For more information, see [AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idsecretsinherit).
150148

151-
{%- else %}
152-
1. In the reusable workflow, reference the input or secret that you defined in the `on` key in the previous step.
153-
{%- endif %}
154-
155149
{% raw %}
156150

157151
```yaml
@@ -225,8 +219,6 @@ You can call multiple workflows, referencing each in a separate job.
225219

226220
{% data reusables.actions.pass-inputs-to-reusable-workflows %}
227221

228-
{% ifversion actions-reusable-workflow-matrix %}
229-
230222
### Using a matrix strategy with a reusable workflow
231223

232224
Jobs using the matrix strategy can call a reusable workflow.
@@ -249,7 +241,6 @@ jobs:
249241
```
250242

251243
{% endraw %}
252-
{% endif %}
253244

254245
### Supported keywords for jobs that call a reusable workflow
255246

@@ -261,12 +252,8 @@ When you call a reusable workflow, you can only use the following keywords in th
261252
* [`jobs.<job_id>.with.<input_id>`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idwithinput_id)
262253
* [`jobs.<job_id>.secrets`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idsecrets)
263254
* [`jobs.<job_id>.secrets.<secret_id>`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idsecretssecret_id)
264-
{%- ifversion actions-inherit-secrets-reusable-workflows %}
265255
* [`jobs.<job_id>.secrets.inherit`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idsecretsinherit)
266-
{%- endif %}
267-
{%- ifversion actions-reusable-workflow-matrix %}
268256
* [`jobs.<job_id>.strategy`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategy)
269-
{%- endif %}
270257
* [`jobs.<job_id>.needs`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idneeds)
271258
* [`jobs.<job_id>.if`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idif)
272259
* [`jobs.<job_id>.concurrency`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idconcurrency)
@@ -368,10 +355,10 @@ For information on how to use the API to determine which workflow files were inv
368355

369356
## Using outputs from a reusable workflow
370357

371-
A reusable workflow may generate data that you want to use in the caller workflow. To use these outputs, you must specify them as the outputs of the reusable workflow.{% ifversion actions-reusable-workflow-matrix %}
358+
A reusable workflow may generate data that you want to use in the caller workflow. To use these outputs, you must specify them as the outputs of the reusable workflow.
372359

373360
If a reusable workflow that sets an output is executed with a matrix strategy, the output will be the output set by the last successful completing reusable workflow of the matrix which actually sets a value.
374-
That means if the last successful completing reusable workflow sets an empty string for its output, and the second last successful completing reusable workflow sets an actual value for its output, the output will contain the value of the second last completing reusable workflow.{% endif %}
361+
That means if the last successful completing reusable workflow sets an empty string for its output, and the second last successful completing reusable workflow sets an actual value for its output, the output will contain the value of the second last completing reusable workflow.
375362

376363
The following reusable workflow has a single job containing two steps. In each of these steps we set a single word as the output: "hello" and "world." In the `outputs` section of the job, we map these step outputs to job outputs called: `output1` and `output2`. In the `on.workflow_call.outputs` section we then define two outputs for the workflow itself, one called `firstword` which we map to `output1`, and one called `secondword` which we map to `output2`.
377364

content/actions/use-cases-and-examples/building-and-testing/building-and-testing-go.md

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,8 @@ You can use `go get` to install dependencies:
148148

149149
### Caching dependencies
150150

151-
You can cache and restore dependencies using the [`setup-go` action](https://github.com/actions/setup-go). By default, caching is {% ifversion actions-setup-go-default-cache-enabled %}enabled when using the `setup-go` action.{% else %}disabled, but you can set the `cache` parameter to `true` to enable it.{% endif %}
151+
You can cache and restore dependencies using the [`setup-go` action](https://github.com/actions/setup-go). By default, caching is enabled when using the `setup-go` action.
152152

153-
{% ifversion actions-setup-go-default-cache-enabled %}
154153
The `setup-go` action searches for the dependency file, `go.sum`, in the repository root and uses the hash of the dependency file as a part of the cache key.
155154

156155
You can use the `cache-dependency-path` parameter for cases when multiple dependency files are used, or when they are located in different subdirectories.
@@ -163,30 +162,6 @@ You can use the `cache-dependency-path` parameter for cases when multiple depend
163162
cache-dependency-path: subdir/go.sum
164163
```
165164

166-
{% else %}
167-
168-
When caching is enabled, the `setup-go` action searches for the dependency file, `go.sum`, in the repository root and uses the hash of the dependency file as a part of the cache key.
169-
170-
```yaml copy
171-
- name: Setup Go
172-
uses: {% data reusables.actions.action-setup-go %}
173-
with:
174-
go-version: '1.21.x'
175-
cache: true
176-
```
177-
178-
Alternatively, you can use the `cache-dependency-path` parameter for cases when multiple dependency files are used, or when they are located in different subdirectories.
179-
180-
```yaml copy
181-
- uses: {% data reusables.actions.action-setup-go %}
182-
with:
183-
go-version: '1.17'
184-
cache: true
185-
cache-dependency-path: subdir/go.sum
186-
```
187-
188-
{% endif %}
189-
190165
If you have a custom requirement or need finer controls for caching, you can use the [`cache` action](https://github.com/marketplace/actions/cache). For more information, see [AUTOTITLE](/actions/using-workflows/caching-dependencies-to-speed-up-workflows).
191166

192167
## Building and testing your code

content/admin/managing-github-actions-for-your-enterprise/enabling-github-actions-for-github-enterprise-server/enabling-github-actions-with-google-cloud-storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Enabling GitHub Actions with Google Cloud Storage
33
intro: 'You can enable {% data variables.product.prodname_actions %} on {% data variables.product.prodname_ghe_server %} and use Google Cloud Storage to store data generated by workflow runs.'
44
permissions: 'Site administrators can enable {% data variables.product.prodname_actions %} and configure enterprise settings.'
55
versions:
6-
feature: actions-ghes-gcp-storage
6+
ghes: '*'
77
type: how_to
88
topics:
99
- Actions

content/admin/managing-github-actions-for-your-enterprise/getting-started-with-github-actions-for-your-enterprise/getting-started-with-github-actions-for-github-enterprise-server.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ All other {% data variables.product.prodname_actions %} data, such as the workfl
7979

8080
* Azure Blob storage
8181
* Amazon S3
82-
{%- ifversion actions-ghes-gcp-storage %}
8382
* Google Cloud Storage
84-
{%- endif %}
8583
* S3-compatible MinIO cluster
8684

8785
> [!NOTE]
@@ -101,9 +99,7 @@ Follow one of the procedures below to enable {% data variables.product.prodname_
10199

102100
* [Enabling GitHub Actions with Azure Blob storage](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/enabling-github-actions-with-azure-blob-storage)
103101
* [Enabling GitHub Actions with Amazon S3 storage](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/enabling-github-actions-with-amazon-s3-storage)
104-
{%- ifversion actions-ghes-gcp-storage %}
105102
* [Enabling GitHub Actions with Google Cloud Storage](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/enabling-github-actions-with-google-cloud-storage)
106-
{%- endif %}
107103
* [Enabling GitHub Actions with MinIO storage](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/enabling-github-actions-with-minio-storage)
108104

109105
## Managing access permissions for {% data variables.product.prodname_actions %} in your enterprise

0 commit comments

Comments
 (0)