{"id":13821612,"url":"https://github.com/rlespinasse/github-slug-action","last_synced_at":"2026-02-04T11:49:52.950Z","repository":{"id":37794899,"uuid":"219873155","full_name":"rlespinasse/github-slug-action","owner":"rlespinasse","description":"GitHub Action to expose slug value of GitHub environment variables inside your GitHub workflow","archived":false,"fork":false,"pushed_at":"2025-11-25T23:51:34.000Z","size":1159,"stargazers_count":310,"open_issues_count":4,"forks_count":39,"subscribers_count":4,"default_branch":"v5.x","last_synced_at":"2026-01-28T19:54:22.111Z","etag":null,"topics":["continuous-delivery","continuous-deployment","continuous-integration","github-actions","hacktoberfest","short","slug","workflows"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rlespinasse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"rlespinasse"}},"created_at":"2019-11-05T23:54:11.000Z","updated_at":"2026-01-27T00:15:14.000Z","dependencies_parsed_at":"2024-04-29T22:49:55.810Z","dependency_job_id":"1f903e0d-0047-40a8-ba39-d454f6dea761","html_url":"https://github.com/rlespinasse/github-slug-action","commit_stats":{"total_commits":155,"total_committers":13,"mean_commits":"11.923076923076923","dds":"0.31612903225806455","last_synced_commit":"797666298f75c6edeb55799185ca05ed7f001e55"},"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"purl":"pkg:github/rlespinasse/github-slug-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlespinasse%2Fgithub-slug-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlespinasse%2Fgithub-slug-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlespinasse%2Fgithub-slug-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlespinasse%2Fgithub-slug-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rlespinasse","download_url":"https://codeload.github.com/rlespinasse/github-slug-action/tar.gz/refs/heads/v5.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlespinasse%2Fgithub-slug-action/sbom","scorecard":{"id":778559,"data":{"date":"2025-08-11","repo":{"name":"github.com/rlespinasse/github-slug-action","commit":"c33ff65466c58d57e4d796f88bb1ae0ff26ee453"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.8,"checks":[{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 3/25 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/linter.yml:13","Info: jobLevel 'packages' permission set to 'read': .github/workflows/linter.yml:14","Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/linter.yml:15","Warn: jobLevel 'packages' permission set to 'write': .github/workflows/v5-tests-and-release.yml:389","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/v5-tests-and-release.yml:386","Info: topLevel permissions set to 'read-all': .github/workflows/check-variables.yml:10","Info: topLevel permissions set to 'read-all': .github/workflows/linter.yml:6","Info: topLevel permissions set to 'read-all': .github/workflows/v5-tests-and-release.yml:3"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-variables.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/check-variables.yml/v5.x?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-variables.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/check-variables.yml/v5.x?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-variables.yml:105: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/check-variables.yml/v5.x?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linter.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/linter.yml/v5.x?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/linter.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/linter.yml/v5.x?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/v5-tests-and-release.yml:398: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/v5-tests-and-release.yml/v5.x?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/v5-tests-and-release.yml:400: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/v5-tests-and-release.yml/v5.x?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/v5-tests-and-release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/v5-tests-and-release.yml/v5.x?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/v5-tests-and-release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/v5-tests-and-release.yml/v5.x?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/v5-tests-and-release.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/v5-tests-and-release.yml/v5.x?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/v5-tests-and-release.yml:106: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/v5-tests-and-release.yml/v5.x?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/v5-tests-and-release.yml:125: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/v5-tests-and-release.yml/v5.x?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/v5-tests-and-release.yml:210: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/v5-tests-and-release.yml/v5.x?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/v5-tests-and-release.yml:233: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/v5-tests-and-release.yml/v5.x?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/v5-tests-and-release.yml:272: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/v5-tests-and-release.yml/v5.x?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/v5-tests-and-release.yml:326: update your workflow using https://app.stepsecurity.io/secureworkflow/rlespinasse/github-slug-action/v5-tests-and-release.yml/v5.x?enable=pin","Info:   0 out of  11 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 2 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T04:18:11.726Z","repository_id":37794899,"created_at":"2025-08-23T04:18:11.726Z","updated_at":"2025-08-23T04:18:11.726Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29083644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["continuous-delivery","continuous-deployment","continuous-integration","github-actions","hacktoberfest","short","slug","workflows"],"created_at":"2024-08-04T08:01:24.699Z","updated_at":"2026-02-04T11:49:52.944Z","avatar_url":"https://github.com/rlespinasse.png","language":"Shell","readme":"# GitHub Slug action\n\nThis GitHub Action will expose the slug/short values of [some GitHub environment variables][default-environment-variables] inside your GitHub workflow.\n\n## Overview\n\n`SLUG` on a variable will\n\n- put the variable content in lower case\n- replace any character by `-` except `0-9`, `a-z`, `.`, and `_`\n- remove leading `-` characters\n- limit the string size to 63 characters\n- remove trailing `-` characters\n\n### Others Slug-ish variables are available\n\n- `SLUG_URL` on a variable to have a `slug` variable compliant to be used in a URL\n  - Like `SLUG` but `.`, and `_` are also replaced by `-`\n- `SHORT` on a variable will limit the string size to [~8 characters](#with-another-length-for-short-values)\n  - Useful for _sha_ value\n- `\u003cKEY\u003e_PART` on a variable will give a part of a variable defined by a key\n  - Like `GITHUB_REPOSITORY_OWNER_PART` for the owner part of `GITHUB_REPOSITORY`\n- `\u003cVAR\u003e_CS` on other variables to keep the value case-sensitive\n  - Like `GITHUB_REF_SLUG_CS`\n\n## Installation\n\nAdd this step to your workflow\n\n```yaml\nsteps:\n  - name: Inject enhanced GitHub environment variables\n    uses: rlespinasse/github-slug-action@v5\n```\n\n\u003e [!CAUTION]\n\u003e Use [Dependabot][dependabot] to maintain your `github-slug-action` version updated in your GitHub workflows.\n\n## Configuration Options\n\n\u003e [!TIP]\n\u003e Check for more [examples][examples] (OS usage, URL use, ...)\n\n### With a prefix\n\n```yaml\nsteps:\n  - name: Inject enhanced GitHub environment variables\n    uses: rlespinasse/github-slug-action@v5\n    with:\n      prefix: CI_\n```\n\n### With another max length for slug values\n\n```yaml\nsteps:\n  - name: Inject enhanced GitHub environment variables\n    uses: rlespinasse/github-slug-action@v5\n    with:\n      slug-maxlength: 80 # Use 'nolimit' to remove use of a max length (Default to 63)\n```\n\n### With another length for short values\n\n```yaml\nsteps:\n  - name: Inject enhanced GitHub environment variables\n    uses: rlespinasse/github-slug-action@v5\n    with:\n      short-length: 7 # By default it's up to Git to decide, use 8 to have the v3.x behaviour\n```\n\nThe length of a short sha depends on the size of **your repository** and can differ over time :\n\n- set `7` to keep the `small repository` behaviour,\n- set `8` to reproduce `v3` behaviour,\n- set `4` as the minimum length possible.\n\n\u003e [!WARNING]\n\u003e If you leave it empty, you need to checkout the source first to let Git decide the size by itself by using [`git rev-parse`][git-revparse] behaviour.\n\u003e\n\u003e The default is the effective value of the [core.abbrev][git-core-abbrev] configuration variable.\n\n## Available Environment variables\n\n\u003e [!TIP]\n\u003e If you don't find what you search for\n\u003e\n\u003e - Read more about [available `GitHub` variables](docs/github-variables.md), and propose a [new custom variable][custom-variable].\n\u003e - Use your own variable with [slugify-value][slugify-value], or [shortify-git-revision][shortify-git-revision] for git reference.\n\n### Enhanced variables\n\n- `GITHUB_REF_POINT` will contain the reference name (branch or tag)\n  - based on `GITHUB_HEAD_REF` in a [`pull-request*`][webhooks-and-events] event context,\n  - based on `GITHUB_REF_NAME` in other event context.\n\n\u003e [!NOTE]\n\u003e All enhanced variables are available in all **slug** formats.\n\n### Partial variables\n\n| Variable | Description |\n| -------- | ----------- |\n| [GITHUB_REPOSITORY_OWNER_PART](docs/partial-variables.md#github_repository_owner_part) | The Owner part of GITHUB_REPOSITORY variable |\n| [GITHUB_REPOSITORY_NAME_PART](docs/partial-variables.md#github_repository_name_part) | The Repository name part of GITHUB_REPOSITORY variable |\n\n### Slug variables\n\n\u003e [!TIP]\n\u003e Available in standard and case-sensitive (`_CS`) versions.\n\n| Variable | Description |\n| -------- | ----------- |\n| [GITHUB_REPOSITORY_SLUG](docs/slug-variables.md#github_repository_slug) | The owner and repository name. |\n| [GITHUB_REPOSITORY_OWNER_PART_SLUG](docs/slug-variables.md#github_repository_owner_part_slug) | The owner name. |\n| [GITHUB_REPOSITORY_NAME_PART_SLUG](docs/slug-variables.md#github_repository_name_part_slug) | The repository name. |\n| [GITHUB_REF_SLUG](docs/slug-variables.md#github_ref_slug) | The branch or tag ref that triggered the workflow. |\n| [GITHUB_REF_NAME_SLUG](docs/slug-variables.md#github_ref_name_slug) | This value matches the branch or tag name shown on GitHub. |\n| [GITHUB_HEAD_REF_SLUG](docs/slug-variables.md#github_head_ref_slug) | The branch of the head repository. |\n| [GITHUB_BASE_REF_SLUG](docs/slug-variables.md#github_base_ref_slug) | The branch of the base repository. |\n| [GITHUB_EVENT_REF_SLUG](docs/slug-variables.md#github_event_ref_slug) | The Git reference resource associated to triggered webhook. |\n\n### URL-Safe Slug variables\n\nSame as slug variables but URL-compliant\n\n\u003e [!TIP]\n\u003e Available in standard and case-sensitive (`_CS`) versions.\n\n| Variable | Description |\n| -------- | ----------- |\n| [GITHUB_REPOSITORY_SLUG_URL](docs/slug-url-variables.md#github_repository_slug_url) | The owner and repository name. |\n| [GITHUB_REPOSITORY_OWNER_PART_SLUG_URL](docs/slug-variables.md#github_repository_owner_part_slug_url) | The owner name. |\n| [GITHUB_REPOSITORY_NAME_PART_SLUG_URL](docs/slug-variables.md#github_repository_name_part_slug_url) | The repository name. |\n| [GITHUB_REF_SLUG_URL](docs/slug-url-variables.md#github_ref_slug_url) | The branch or tag ref that triggered the workflow. |\n| [GITHUB_REF_NAME_SLUG_URL](docs/slug-url-variables.md#github_ref_slug_url) | This value matches the branch or tag name shown on GitHub. |\n| [GITHUB_HEAD_REF_SLUG_URL](docs/slug-url-variables.md#github_head_ref_slug_url) | The branch of the head repository. |\n| [GITHUB_BASE_REF_SLUG_URL](docs/slug-url-variables.md#github_base_ref_slug_url) | The branch of the base repository. |\n| [GITHUB_EVENT_REF_SLUG_URL](docs/slug-url-variables.md#github_event_ref_slug_url) | The Git reference resource associated to triggered webhook. |\n\n### Short variables\n\n| Variable | Description |\n| -------- | ----------- |\n| [GITHUB_SHA_SHORT](docs/short-variables.md#github_sha_short) | The commit SHA that triggered the workflow. |\n| [GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT](docs/short-variables.md#github_event_pull_request_head_sha_short) |  The commit SHA on pull request that trigger workflow. |\n\n## Migration from previous versions\n\n### v4 to v5\n\nThe **GITHUB_REF_NAME SLUG/SLUG_URL** variables don't work the same way as before\n\n\u003e [!TIP]\n\u003e If you use `v5` or related versions, you need to use `GITHUB_REF_POINT` instead of `GITHUB_REF_NAME` to get the behaviour of the `v4` action.\n\nBefore `v5`, the behaviour was the same as the GitHub one except on `pull_request*` workflows ([Ready the full story][issue-104]).\n\n- `${{ env.GITHUB_REF_NAME }}` will serve the behaviour of this action,\n- `$GITHUB_REF_NAME` will serve the behaviour of GitHub Action.\n\nOn `pull_request*` workflows, the content will be `\u003cPR-number\u003e/merge` instead of the branch name.\nSo you need to use `GITHUB_REF_POINT` instead\n\n```yaml\nsteps:\n  - name: Inject enhanced GitHub environment variables\n    uses: rlespinasse/github-slug-action@v5\n  - run: |\n      echo \"Branch Name: ${GITHUB_REF_POINT}\"\n    shell: bash\n\n```\n\nThen `${{ env.GITHUB_REF_POINT }}`, and `$GITHUB_REF_POINT` will serve the behaviour of this action.\nAnd `${{ env.GITHUB_REF_NAME }}`, and `$GITHUB_REF_NAME` will serve the behaviour of GitHub Action.\n\n### v3 to v4\n\nSince `v4`, Git manages the short variables using [`git rev-parse`][git-revparse] behaviour.\nThe length of a short sha depends on the size of **your repository** and can differ over time.\n\nTo manage that moving length, you can use the `short-length` input\n\n- set `7` to reproduce `small repository` behaviour\n- set `8` to reproduce `v3` behaviour\n\n\u003e [!WARNING]\n\u003e The minimum length is 4, the default is the effective value of the [core.abbrev][git-core-abbrev] configuration variable.\n\nSo to reproduce previous behaviour, use\n\n```yaml\nsteps:\n  - name: Inject enhanced GitHub environment variables\n    uses: rlespinasse/github-slug-action@v5\n    with:\n      short-length: 8 # Same as v3 and before\n```\n\n## Troubleshooting\n\n### One of the environment variables doesn't work as intended\n\n\u003e [!WARNING]\n\u003e When you set a custom environment variable, you [cannot use any of the default environment variable names][naming-conventions]. For a complete list of these, see [Default environment variables][default-environment-variables]. **If you attempt to override the value of one of these default environment variables, the assignment is ignored.**\n\nIf a variable starts to be used as a default environment variable, the environment variable may behave differently than the expected one.\n\nIf this append, the `${{ env.GITHUB_AWESOME_VARIABLE }}` and `$GITHUB_AWESOME_VARIABLE` expression will not works in the same way.\n\n- `${{ env.GITHUB_AWESOME_VARIABLE }}` will serve the behaviour of this action,\n- `$GITHUB_AWESOME_VARIABLE` will serve the behaviour of GitHub Action.\n\nOtherwise, the two expressions will serve the behaviour of this action.\nThis will not occur if you use the `prefix` input to avoid the issue.\n\n\u003e [!IMPORTANT]\n\u003e If detected, the maintainers of this action will choose the best course of action depending on the impact.\n\n### An action could not be found at the URI\n\nIf your workflow fails on the `Set up job` task with this kind of log\n\n```text\nDownload action repository 'rlespinasse/github-slug-action@GIT_REFERENCE'\n##[error]An action could not be found at the URI 'https://api.github.com/repos/rlespinasse/github-slug-action/tarball/GIT_REFERENCE'\n```\n\nIf the `GIT_REFERENCE` value is\n\n- `v4.x` or after, following the [end-of-life for a branch](SECURITY.md#end-of-life-of-a-branch) security process, this branch can be deleted.\n- `master`, the branch doesn't exist anymore, read more about it on the corresponding issue ([EOL issue][issue-15])\n\nPlease, use the current **Major tag** `v5` or a version tag (see [releases pages][releases]) to fix your workflow.\n\n## Thanks for talking about us\n\nIn English :gb:\n\n- [Action spotlight by Michael Heap][article-2]\n- [Serverless Deploy Previews on GitHub Actions][article-3]\n- [Let's Build a Continuous Delivery and Branching Process with GitHub Actions, Vercel and Heroku][article-4]\n- [Celebrating 5 Years of github-slug-action on sfeir.dev][article-7]\n\nIn French :fr:\n\n- [Mettre en place une CI/CD Angular avec GitHub Actions \u0026 Netlify][article-1]\n- [GitHub Actions : enfin des pipelines accessibles aux développeurs][talk-1]\n- [GitHub-slug-action : 5 ans d'open source pour cette GitHub Action essentielle au CI/CD][article-6]\n\nIn Chinese :cn:\n\n- [利用github-slug-action暴漏GitHub Action上下文中的关键变量][article-5]\n\n\u003e The next one is you. _Don't hesitate to add yourself to one of these lists._\n\n[examples]: https://github.com/rlespinasse/github-slug-action/tree/v5.x/examples\n[custom-variable]: https://github.com/rlespinasse/github-slug-action/issues/new?assignees=\u0026labels=enhancement\u0026template=feature_request.md\u0026title=\n[releases]: https://github.com/rlespinasse/github-slug-action/releases\n[issue-15]: https://github.com/rlespinasse/github-slug-action/issues/15\n[issue-104]: https://github.com/rlespinasse/github-slug-action/issues/104\n\n[slugify-value]: https://github.com/rlespinasse/slugify-value\n[shortify-git-revision]: https://github.com/rlespinasse/shortify-git-revision\n\n[git-revparse]: https://git-scm.com/docs/git-rev-parse#Documentation/git-rev-parse.txt---shortlength\n[git-core-abbrev]: https://git-scm.com/docs/git-config#Documentation/git-config.txt-coreabbrev\n\n[default-environment-variables]: https://docs.github.com/en/actions/reference/workflows-and-actions/variables#default-environment-variables\n[dependabot]: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot\n[webhooks-and-events]: https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads\n[naming-conventions]: https://docs.github.com/en/actions/reference/workflows-and-actions/variables#naming-conventions-for-configuration-variables\n\n[article-1]: https://esensconsulting.medium.com/mettre-en-place-une-ci-cd-angular-avec-github-actions-netlify-ca0b59b99ed8\n[article-2]: https://michaelheap.com/github-slug-action/\n[article-3]: https://barstool.engineering/serverless-deploy-previews-on-github-actions/\n[article-4]: https://javascript.plainenglish.io/lets-build-a-continuous-delivery-and-branching-process-c27dae09f0b6\n[article-5]: https://eryajf.github.io/HowToStartOpenSource/views/03-github-tips/10-Use-github-slug-action-to-leak-key-variables-in-the-Github-Action-context.html\n[article-6]: https://www.sfeir.dev/5-ans-de-github-slug-action-une-aventure-open-source/\n[article-7]: https://www.romainlespinasse.dev/posts/celebrating-5-years-of-github-slug-action/\n[talk-1]: https://www.youtube.com/watch?v=F5mBDmOQcvE\n","funding_links":["https://github.com/sponsors/rlespinasse"],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlespinasse%2Fgithub-slug-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frlespinasse%2Fgithub-slug-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlespinasse%2Fgithub-slug-action/lists"}