Skip to content

Commit

Permalink
Update accessing-contextual-information-about-workflow-runs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lachieh authored Dec 28, 2024
1 parent d25344a commit 45cabd1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ The `github` context contains information about the workflow run and the event t
| `github.repository_id` | `string` | {% data reusables.actions.repository_id-description %} |
| `github.repository_owner` | `string` | The repository owner's username. For example, `octocat`. |
| `github.repository_owner_id` | `string` | {% data reusables.actions.repository_owner_id-description %} |
| `github.repositoryUrl` | `string` | The Git URL to the repository. For example, `git://github.com/octocat/hello-world.git`. |
| `github.repositoryUrl` | `string` | The Git URL to the repository. For example, `git://github.com/octocat/hello-world.git`. [(See note below)](./#note-on-github-repositoryUrl-property) |

Check failure on line 209 in content/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs.md

View workflow job for this annotation

GitHub Actions / lint-content

Internal links must start with a /

Expected: /./#note-on-github-repositoryUrl-property.
| `github.retention_days` | `string` | The number of days that workflow run logs and artifacts are kept. |
| `github.run_id` | `string` | {% data reusables.actions.run_id_description %} |
| `github.run_number` | `string` | {% data reusables.actions.run_number_description %} |
Expand Down Expand Up @@ -288,6 +288,10 @@ jobs:
run: echo "Running PR only CI"
```

### Note on `github.repositoryUrl` property

The `git://` protocol is disabled for security reasons. You will not be able to use the value of `github.repositoryUrl` to perform any git operations. Instead, you can use `${{ github.serverUrl }}${{ github.repository }}` to give you the HTTP URL for the current repository.

## `env` context

The `env` context contains variables that have been set in a workflow, job, or step. It does not contain variables inherited by the runner process. For more information about setting variables in your workflow, see [AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#env).
Expand Down

0 comments on commit 45cabd1

Please sign in to comment.