From 9440080e75cd9d20dbac71edf58e4db09fb73257 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Tue, 3 Oct 2023 11:11:19 -0500 Subject: [PATCH] Remove job_workflow_sha from context doc (#43279) Co-authored-by: Siara <108543037+SiaraMist@users.noreply.github.com> --- .../about-security-hardening-with-openid-connect.md | 2 +- content/actions/learn-github-actions/contexts.md | 3 --- data/reusables/actions/job-workflow-sha-description.md | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 data/reusables/actions/job-workflow-sha-description.md diff --git a/content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md b/content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md index bcbda476ef..aa0f724cfe 100644 --- a/content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md +++ b/content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md @@ -130,7 +130,7 @@ The token also includes custom claims provided by {% data variables.product.prod | `head_ref`| The source branch of the pull request in a workflow run. | | `job_workflow_ref`| For jobs using a reusable workflow, the ref path to the reusable workflow. For more information, see "[AUTOTITLE](/actions/deployment/security-hardening-your-deployments/using-openid-connect-with-reusable-workflows)." | {%- ifversion actions-oidc-custom-claims %} -| `job_workflow_sha`| {% data reusables.actions.job-workflow-sha-description %} | +| `job_workflow_sha`| For jobs using a reusable workflow, the commit SHA for the reusable workflow file. | {%- endif %} | `ref`| _(Reference)_ The git ref that triggered the workflow run. | | `ref_type`| The type of `ref`, for example: "branch". | diff --git a/content/actions/learn-github-actions/contexts.md b/content/actions/learn-github-actions/contexts.md index 47c9af9b1a..a46c2e24c7 100644 --- a/content/actions/learn-github-actions/contexts.md +++ b/content/actions/learn-github-actions/contexts.md @@ -201,9 +201,6 @@ The `github` context contains information about the workflow run and the event t | `github.graphql_url` | `string` | The URL of the {% data variables.product.prodname_dotcom %} GraphQL API. | | `github.head_ref` | `string` | The `head_ref` or source branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is either `pull_request` or `pull_request_target`. | | `github.job` | `string` | The [`job_id`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_id) of the current job.
Note: This context property is set by the Actions runner, and is only available within the execution `steps` of a job. Otherwise, the value of this property will be `null`. | -{%- ifversion actions-oidc-custom-claims %} -| `github.job_workflow_sha` | `string` | {% data reusables.actions.job-workflow-sha-description %} | -{%- endif %} | `github.path` | `string` | Path on the runner to the file that sets system `PATH` variables from workflow commands. This file is unique to the current step and is a different file for each step in a job. For more information, see "[AUTOTITLE](/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path)." | | `github.ref` | `string` | {% data reusables.actions.ref-description %} | | `github.ref_name` | `string` | {% data reusables.actions.ref_name-description %} | diff --git a/data/reusables/actions/job-workflow-sha-description.md b/data/reusables/actions/job-workflow-sha-description.md deleted file mode 100644 index e3cf5f8e0b..0000000000 --- a/data/reusables/actions/job-workflow-sha-description.md +++ /dev/null @@ -1 +0,0 @@ -For jobs using a reusable workflow, the commit SHA for the reusable workflow file.