{"id":27351911,"url":"https://github.com/harry-moore-dev/bump-tf-values","last_synced_at":"2026-05-15T18:35:00.285Z","repository":{"id":153901339,"uuid":"628073302","full_name":"Harry-Moore-dev/bump-tf-values","owner":"Harry-Moore-dev","description":"Github action to update (bump) the value for a Terraform local","archived":false,"fork":false,"pushed_at":"2024-05-23T22:38:02.000Z","size":3367,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-15T14:33:09.668Z","etag":null,"topics":["actions","github-actions","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Harry-Moore-dev.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-14T21:11:20.000Z","updated_at":"2023-04-24T22:00:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"245a071c-7e73-4eda-a266-37c43809f5b8","html_url":"https://github.com/Harry-Moore-dev/bump-tf-values","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/Harry-Moore-dev/bump-tf-values","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harry-Moore-dev%2Fbump-tf-values","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harry-Moore-dev%2Fbump-tf-values/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harry-Moore-dev%2Fbump-tf-values/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harry-Moore-dev%2Fbump-tf-values/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Harry-Moore-dev","download_url":"https://codeload.github.com/Harry-Moore-dev/bump-tf-values/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harry-Moore-dev%2Fbump-tf-values/sbom","scorecard":{"id":61329,"data":{"date":"2025-08-11","repo":{"name":"github.com/Harry-Moore-dev/bump-tf-values","commit":"1b3b3e81e5dddcdc89e088a15d6f7acf6ae9150a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/codecov.yml:1","Warn: no topLevel permission defined: .github/workflows/docker-publish.yml:1","Warn: no topLevel permission defined: .github/workflows/gosec.yml:1","Warn: no topLevel permission defined: .github/workflows/pre-commit.yml:1","Warn: no topLevel permission defined: .github/workflows/static-check.yml:1","Info: no jobLevel write permissions found"],"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":"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":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v2.0: 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":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: branch 'main' does not require approvers","Warn: codeowners review is not required on branch 'main'","Warn: no status checks found to merge onto branch 'main'"],"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":"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/codecov.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/Harry-Moore-dev/bump-tf-values/codecov.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/codecov.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/Harry-Moore-dev/bump-tf-values/codecov.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker-publish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/Harry-Moore-dev/bump-tf-values/docker-publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/Harry-Moore-dev/bump-tf-values/docker-publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-publish.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/Harry-Moore-dev/bump-tf-values/docker-publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-publish.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/Harry-Moore-dev/bump-tf-values/docker-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gosec.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/Harry-Moore-dev/bump-tf-values/gosec.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/gosec.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/Harry-Moore-dev/bump-tf-values/gosec.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-commit.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/Harry-Moore-dev/bump-tf-values/pre-commit.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-commit.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/Harry-Moore-dev/bump-tf-values/pre-commit.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre-commit.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/Harry-Moore-dev/bump-tf-values/pre-commit.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/static-check.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/Harry-Moore-dev/bump-tf-values/static-check.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/static-check.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/Harry-Moore-dev/bump-tf-values/static-check.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating golang:1.20 to golang:1.20@sha256:8f9af7094d0cb27cc783c697ac5ba25efdc4da35f8526db21f7aebb0b0b4f18a","Warn: containerImage not pinned by hash: Publishing.dockerfile:1","Warn: goCommand not pinned by hash: .github/workflows/pre-commit.yml:12","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   7 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   1 goCommand 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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 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"}},{"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"}}]},"last_synced_at":"2025-08-15T01:46:54.513Z","repository_id":153901339,"created_at":"2025-08-15T01:46:54.513Z","updated_at":"2025-08-15T01:46:54.513Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278778955,"owners_count":26044256,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["actions","github-actions","golang"],"created_at":"2025-04-12T20:54:06.246Z","updated_at":"2025-10-07T12:41:27.047Z","avatar_url":"https://github.com/Harry-Moore-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub release](https://img.shields.io/github/release/Harry-Moore-dev/bump-tf-values.svg?style=flat-square)](https://github.com/Harry-Moore-dev/bump-tf-values/releases/latest)\n\n\n# bump-tf-values\n\nGithub action to update (bump) the value for a Terraform local within a specified Terraform file formatted with the standard syntax.\n\n## Usage\n\nThis action can be used by referencing the version tag in the workflow file.\n```yaml\nuses: Harry-Moore-dev/bump-tf-values@v0.1.0-alpha\n```\nOr using the preferred way for faster execution from the lightweight prebuilt docker image published with the same version tag or the `latest` tag.\n```yaml\nuses: docker://ghcr.io/harry-moore-dev/bump-tf-values:v0.1.0-alpha\n```\n\n### Examples\n#### Basic Usage\n\nExample usage triggered when publishing a release to modify the local `code_version` within the submodule `module/main.tf` to be set as the value of the tag that has just been published. This example uses the `actions/checkout` action to checkout the repository and then the `peter-evans/create-pull-request` action to raise a pull request with the changes.\n\n```yaml\nname: bump-tf\non:\n  release:\n    types: [published]\njobs:\n  bump-tf:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Source\n        uses: actions/checkout@v3\n      - name: Bump tf value\n        uses: docker://ghcr.io/harry-moore-dev/bump-tf-values:latest\n        with:\n          filepath: module/main.tf\n          varname: code_version\n          value: \"${{ github.ref_name }}\"\n      - name: Create Pull Request\n        uses: peter-evans/create-pull-request@v5\n```\n\n#### Usage with Signed Commits\n\nFor a repository that enforces signed commits, I recommend creating a bot account and following the guidance in [this post](https://httgp.com/signing-commits-in-github-actions/) to create and store a GPG key as a repository secret. This can then be imported using the `crazy-max/ghaction-import-gpg` action.\n\n```yaml\nname: bump-tf\non:\n  release:\n    types: [published]\njobs:\n  bump-tf:\n    env:\n      FILEPATH: main.tf\n      VARNAME: code_version\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Source\n        uses: actions/checkout@v3\n        with:\n          repository: Harry-Moore-dev/some-other-repo\n          token: ${{ secrets.GH_PAT }}\n      - name: Bump tf value\n        uses: docker://ghcr.io/harry-moore-dev/bump-tf-values:latest\n        with:\n          filepath: ${{ env.FILEPATH }}\n          varname: ${{ env.VARNAME }}\n          value: \"${{ github.ref_name }}\"\n      - name: Import GPG key\n        uses: crazy-max/ghaction-import-gpg@v5\n        with:\n          gpg_private_key: ${{ secrets.BOT_GPG }}\n          git_user_signingkey: true\n          git_commit_gpgsign: true\n      - name: Git Signed Commit Changes\n        run: |\n          git add .\n          git commit -S -m \"Version bump ${{ env.VARNAME }} to ${{ github.ref_name }}\"\n      - name: Create Pull Request\n        uses: peter-evans/create-pull-request@v5\n        with:\n          token: ${{ secrets.GH_PAT }}\n          title: \"Bump pinned version of ${{ env.VARNAME }}\"\n          branch: \"bump-tf/${{ env.VARNAME }}\"\n```\n\nThis example also demonstrates checking out and raising a pull request on a repository outside of the one running the action by using a Github personal access token or Github app token as a repository secret with the correct scopes.\n\n## Inputs\n\nThis action takes the following inputs:\n\n| Input      | Description                                                                       | Type   | Usage      |\n| ---------- | --------------------------------------------------------------------------------- | ------ | ---------- |\n| `filepath` | Filepath containing Terraform file to be modified. If blank defaults to `main.tf` | String | Optional   |\n| `varname`  | Name of the local to be modified                                                  | String | \\*Required |\n| `value`    | New value to be assigned to the local                                             | String | \\*Required |\n\n## Build Instructions\n\nTo build your own version of the docker container run `docker build -f -t \u003c\\username/repo\u003e Publishing.dockerfile .`\n\n## Future Improvments\n\n* Support multiple variables \u0026 values as inputs\n* Support other block types than `locals` such as variable defaults\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharry-moore-dev%2Fbump-tf-values","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharry-moore-dev%2Fbump-tf-values","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharry-moore-dev%2Fbump-tf-values/lists"}