{"id":18952213,"url":"https://github.com/step-security/actions-find-and-replace-string","last_synced_at":"2026-03-29T03:30:19.517Z","repository":{"id":260082070,"uuid":"879754761","full_name":"step-security/actions-find-and-replace-string","owner":"step-security","description":"A GitHub action to execute find-and-replace on strings","archived":false,"fork":false,"pushed_at":"2024-12-20T22:56:05.000Z","size":139,"stargazers_count":0,"open_issues_count":8,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-01T02:28:23.827Z","etag":null,"topics":["step-security-maintained-actions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/step-security.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-28T13:48:20.000Z","updated_at":"2024-10-29T13:59:43.000Z","dependencies_parsed_at":"2024-10-29T12:56:58.524Z","dependency_job_id":null,"html_url":"https://github.com/step-security/actions-find-and-replace-string","commit_stats":null,"previous_names":["step-security/actions-find-and-replace-string"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/step-security%2Factions-find-and-replace-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/step-security%2Factions-find-and-replace-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/step-security%2Factions-find-and-replace-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/step-security%2Factions-find-and-replace-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/step-security","download_url":"https://codeload.github.com/step-security/actions-find-and-replace-string/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239951594,"owners_count":19723904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["step-security-maintained-actions"],"created_at":"2024-11-08T13:31:43.201Z","updated_at":"2026-03-29T03:30:19.434Z","avatar_url":"https://github.com/step-security.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Find and replace strings\n\nThis action executes find-and-replace on a given string (hint: use `${{ github.ref }}` to get your branch name and apply this on it for use in another action). \n\n## Inputs\n\n### `source`\n\n**Required** The source string to apply this action to\n\n### `find`\n\n**Required** The text you want to search for within the branch name (eg. `ref/heads/`)\n\n### `replace`\n\n**Required** The text you want to replace (eg. `head-`, ``, `root_`)\n\n### `replaceAll`\n\n**Optional** Should replace all occurrences? (only 'true' string will be interpreted positive)\n\n## Outputs\n\n### `value`\n\nThe new value containing the found-and-replaced string.\n\n### Example usage\n\n```yaml\nuses: step-security/actions-find-and-replace-string@v5\nwith:\n    source: ${{ github.ref }} # this translates to ref/heads/main on the main branch, but can be any arbitrary string \n    find: 'ref/heads/'        # we want to remove ref/heads/ from source \n    replace: ''               # and replace it with a blank string (ie. removing it)\n```\n\nThis will output `main`.\n\nCheck out `.github/workflows/main.yml` for more examples\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstep-security%2Factions-find-and-replace-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstep-security%2Factions-find-and-replace-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstep-security%2Factions-find-and-replace-string/lists"}