{"id":15654186,"url":"https://github.com/matifali/update-coder-template","last_synced_at":"2026-03-08T05:33:13.601Z","repository":{"id":63692694,"uuid":"568731118","full_name":"matifali/update-coder-template","owner":"matifali","description":"Update coder templates automatically","archived":false,"fork":false,"pushed_at":"2025-10-29T05:42:04.000Z","size":53,"stargazers_count":37,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-10T22:37:29.454Z","etag":null,"topics":["ci","coder","continuous-deployment","continuous-integration","docker","github-actions","terraform"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/update-coder-template","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/matifali.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,"zenodo":null}},"created_at":"2022-11-21T09:42:35.000Z","updated_at":"2026-01-05T16:32:05.000Z","dependencies_parsed_at":"2023-11-14T11:28:39.397Z","dependency_job_id":"2ecc05bb-5a4d-431c-9cb0-7860c96415c1","html_url":"https://github.com/matifali/update-coder-template","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":"0.33333333333333337","last_synced_commit":"d1ba1c96ba1db64fc3678b13136fb58ee05f584e"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/matifali/update-coder-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matifali%2Fupdate-coder-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matifali%2Fupdate-coder-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matifali%2Fupdate-coder-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matifali%2Fupdate-coder-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matifali","download_url":"https://codeload.github.com/matifali/update-coder-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matifali%2Fupdate-coder-template/sbom","scorecard":{"id":624840,"data":{"date":"2025-08-11","repo":{"name":"github.com/matifali/update-coder-template","commit":"c5dfa097d7df07d605d3e2f54f1b4fd5679bde5d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/14 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/update-main-version.yaml: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":"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":"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/update-main-version.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/matifali/update-coder-template/update-main-version.yaml/main?enable=pin","Info:   0 out of   1 GitHub-owned 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":"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":"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":"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":"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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for 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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 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-21T06:06:57.249Z","repository_id":63692694,"created_at":"2025-08-21T06:06:57.250Z","updated_at":"2025-08-21T06:06:57.250Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30246730,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"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":["ci","coder","continuous-deployment","continuous-integration","docker","github-actions","terraform"],"created_at":"2024-10-03T12:49:53.671Z","updated_at":"2026-03-08T05:33:08.581Z","avatar_url":"https://github.com/matifali.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Update [Coder](https://github.com/coder/coder) Template\n\nUpdate coder templates automatically\n\n## Usage\n\n\u003e [!NOTE]\n\u003e Please also check the offical Coder [`setup-action`](https://github.com/coder/setup-action) action. \n\n1. Create a GitHub secret named `CODER_SESSION_TOKEN` with your coder session token\n   You can generate a long lived session token by running the following command in your browser console while logged into Coder with a **Template Admin** or **Owner** role.\n\n    ```shell\n      coder token create --lifetime 8760h --name \"GitHub Actions\"\n    ```\n\n2. Create a `.github/workflows/push-coder-template.yaml` file and use one of the examples below.\n\n## Inputs\n\n| Name                      | Description                                                                                                    | Default                     |\n|---------------------------|----------------------------------------------------------------------------------------------------------------|-----------------------------|\n| **`url`**                 | **Required** The url of coder deployment (e.g. \u003chttps://dev.coder.com\u003e).                                       | -                           |\n| **`coder_session_token`** | **Required** The session token of coder.                                                                       | -                           |\n| **`id`**                  | **Required** The name of the template. Visible under Template Settings \u003e General info in the coder deployment. | -                           |\n| **`dir`**                 | **Required** The directory of the template that contains `main.tf` file                                        | -                           |\n| `name`                    | New version name for the template.                                                                             | Autogenerated name by Coder |\n| `activate`                | Activate the new template version.                                                                             | `true`                      |\n| `message`                 | Update message (similar to commit messages)                                                                    | -                           |\n| `dry_run`                 | Dry run mode.                                                                                                  | `false`                     |\n\n## Examples\n\n1. Update a Coder template with the latest commit hash as the version name, commit message as the update message and mark this as active.\n\n   ```yaml\n   name: Update Coder Template\n\n   on:\n     push:\n       branches:\n         - main\n\n   jobs:\n     update:\n       runs-on: ubuntu-latest\n       steps:\n         - name: Checkout\n           uses: actions/checkout@v4\n\n         - name: Get latest commit hash\n           id: latest_commit\n           run: echo \"hash=$(git rev-parse --short HEAD)\" \u003e\u003e $GITHUB_OUTPUT\n\n         - name: Get commit title\n           id: commit_title\n           run: echo \"title=$(git log -1 --pretty=%s)\" \u003e\u003e $GITHUB_OUTPUT\n\n         - name: Update Coder Template\n           uses: matifali/update-coder-template@v3\n           with:\n             id: my-template\n             dir: my-template\n             url: https://coder.example.com\n             name: ${{ steps.latest_commit.outputs.hash }}\n             message: ${{ steps.commit_title.outputs.title }}\n             coder_session_token: ${{ secrets.CODER_SESSION_TOKEN }}\n   ```\n2. Update a Coder template with a random version name without activating.\n\n   ```yaml\n   name: Update Coder Template\n\n   on:\n     push:\n       branches:\n         - main\n\n   jobs:\n     update:\n       runs-on: ubuntu-latest\n       steps:\n         - name: Checkout\n           uses: actions/checkout@v4\n\n         - name: Update Coder Template\n           uses: matifali/update-coder-template@v3\n           with:\n             id: my-template\n             dir: my-template\n             url: https://coder.example.com\n             activate: false\n             coder_session_token: ${{ secrets.CODER_SESSION_TOKEN }}\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatifali%2Fupdate-coder-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatifali%2Fupdate-coder-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatifali%2Fupdate-coder-template/lists"}