{"id":15628363,"url":"https://github.com/rgl/packer-plugin-windows-update","last_synced_at":"2026-02-27T02:22:11.919Z","repository":{"id":40408652,"uuid":"89509943","full_name":"rgl/packer-plugin-windows-update","owner":"rgl","description":"Packer plugin for installing Windows updates","archived":false,"fork":false,"pushed_at":"2025-09-22T20:16:35.000Z","size":269,"stargazers_count":322,"open_issues_count":46,"forks_count":73,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-09-22T22:11:55.718Z","etag":null,"topics":["packer","windows","windows-updates"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-04-26T17:42:46.000Z","updated_at":"2025-09-22T20:13:31.000Z","dependencies_parsed_at":"2023-12-17T11:25:41.886Z","dependency_job_id":"d88b6832-995e-4923-9445-024ff6e1b60c","html_url":"https://github.com/rgl/packer-plugin-windows-update","commit_stats":null,"previous_names":["rgl/packer-provisioner-windows-update"],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/rgl/packer-plugin-windows-update","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fpacker-plugin-windows-update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fpacker-plugin-windows-update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fpacker-plugin-windows-update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fpacker-plugin-windows-update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgl","download_url":"https://codeload.github.com/rgl/packer-plugin-windows-update/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fpacker-plugin-windows-update/sbom","scorecard":{"id":773754,"data":{"date":"2025-08-11","repo":{"name":"github.com/rgl/packer-plugin-windows-update","commit":"ff14adbf39ce9d26397f90faa1a15fda6136ca58"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"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":"Maintained","score":0,"reason":"0 commit(s) and 1 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":1,"reason":"Found 5/26 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":"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/build.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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Mozilla Public License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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/build.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/rgl/packer-plugin-windows-update/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/rgl/packer-plugin-windows-update/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/rgl/packer-plugin-windows-update/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/rgl/packer-plugin-windows-update/build.yml/master?enable=pin","Warn: containerImage not pinned by hash: .devcontainer/Dockerfile:4: pin your Docker image by updating mcr.microsoft.com/devcontainers/base:1.0.21-bookworm to mcr.microsoft.com/devcontainers/base:1.0.21-bookworm@sha256:eb406d55b2ecd2f8a31d23e4bee50af112d688d169da7457f436f5825c3cef12","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage 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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.16.10 not signed: https://api.github.com/repos/rgl/packer-plugin-windows-update/releases/215346271","Warn: release artifact v0.16.9 not signed: https://api.github.com/repos/rgl/packer-plugin-windows-update/releases/200520467","Warn: release artifact v0.16.8 not signed: https://api.github.com/repos/rgl/packer-plugin-windows-update/releases/173957037","Warn: release artifact v0.16.7 not signed: https://api.github.com/repos/rgl/packer-plugin-windows-update/releases/165294562","Warn: release artifact v0.16.6 not signed: https://api.github.com/repos/rgl/packer-plugin-windows-update/releases/165244992","Warn: release artifact v0.16.10 does not have provenance: https://api.github.com/repos/rgl/packer-plugin-windows-update/releases/215346271","Warn: release artifact v0.16.9 does not have provenance: https://api.github.com/repos/rgl/packer-plugin-windows-update/releases/200520467","Warn: release artifact v0.16.8 does not have provenance: https://api.github.com/repos/rgl/packer-plugin-windows-update/releases/173957037","Warn: release artifact v0.16.7 does not have provenance: https://api.github.com/repos/rgl/packer-plugin-windows-update/releases/165294562","Warn: release artifact v0.16.6 does not have provenance: https://api.github.com/repos/rgl/packer-plugin-windows-update/releases/165244992"],"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 'master'"],"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 9 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":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0635","Warn: Project is vulnerable to: GO-2022-0646"],"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-23T02:58:04.732Z","repository_id":40408652,"created_at":"2025-08-23T02:58:04.732Z","updated_at":"2025-08-23T02:58:04.732Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28824001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:44:20.126Z","status":"ssl_error","status_checked_at":"2026-01-27T18:44:09.161Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["packer","windows","windows-updates"],"created_at":"2024-10-03T10:22:11.811Z","updated_at":"2026-01-27T22:12:11.803Z","avatar_url":"https://github.com/rgl.png","language":"PowerShell","readme":"# Packer Windows Update Provisioner\n\n[![Build status](https://github.com/rgl/packer-plugin-windows-update/workflows/Build/badge.svg)](https://github.com/rgl/packer-plugin-windows-update/actions?query=workflow%3ABuild)\n\nThis is a Packer plugin for installing Windows updates (akin to [rgl/vagrant-windows-update](https://github.com/rgl/vagrant-windows-update)).\n\n**NB** This was only tested with Packer 1.14.1 and the images at [rgl/windows-vagrant](https://github.com/rgl/windows-vagrant), so YMMV.\n\n# Usage\n\nConfigure your packer template to require a [release version of the plugin](https://github.com/rgl/packer-plugin-windows-update/releases), e.g.:\n\n```hcl\npacker {\n  required_plugins {\n    windows-update = {\n      version = \"0.17.2\"\n      source  = \"github.com/rgl/windows-update\"\n    }\n  }\n}\n```\n\nInitialize your packer template (it will install the plugin):\n\n```bash\npacker init your-template.pkr.hcl\n```\n\nUse this provisioner plugin from your packer template file, e.g. like in [rgl/windows-vagrant](https://github.com/rgl/windows-vagrant):\n\n```hcl\nbuild {\n  provisioner \"windows-update\" {\n  }\n}\n```\n\nNote, the plugin automatically restarts the machine after Windows Updates are applied.  The reboots occur similar to the windows-restart provisioner built into packer where packer is aware that a shutdown is in progress.\n\n## Search Criteria, Filters and Update Limit\n\nYou can select which Windows Updates are installed by defining the search criteria, a set of filters, and how many updates are installed at a time.\n\nNormally you would use one of the following settings:\n\n| Name          | `search_criteria`                           | `filters`       |\n|---------------|---------------------------------------------|-----------------|\n| Important     | `AutoSelectOnWebSites=1 and IsInstalled=0`  | `$true`         |\n| Recommended   | `BrowseOnly=0 and IsInstalled=0`            | `$true`         |\n| All           | `IsInstalled=0`                             | `$true`         |\n| Optional Only | `AutoSelectOnWebSites=0 and IsInstalled=0`  | `$_.BrowseOnly` |\n\n**NB** `Recommended` is the default setting.\n\nBut you can customize them, e.g.:\n\n```hcl\nbuild {\n  provisioner \"windows-update\" {\n    search_criteria = \"IsInstalled=0\"\n    filters = [\n      \"exclude:$_.Title -like '*Preview*'\",\n      \"include:$true\",\n    ]\n    update_limit = 25\n  }\n}\n```\n\n**NB** For more information about the search criteria see the [IUpdateSearcher::Search method](https://docs.microsoft.com/en-us/windows/desktop/api/wuapi/nf-wuapi-iupdatesearcher-search) documentation and the [xWindowsUpdateAgent DSC resource source](https://github.com/PowerShell/xWindowsUpdate/blob/dev/DscResources/MSFT_xWindowsUpdateAgent/MSFT_xWindowsUpdateAgent.psm1).\n\n**NB** If the `update_limit` attribute is not declared, it defaults to `1000`.\n\nThe general filter syntax is:\n\n    ACTION:EXPRESSION\n\n`ACTION` is a string that can have one of the following values:\n\n| action    | description                                                  |\n| --------- | ------------------------------------------------------------ |\n| `include` | includes the update when the expression evaluates to `$true` |\n| `exclude` | excludes the update when the expression evaluates to `$true` |\n\n**NB** If no `ACTION` evaluates to `$true` the update will **NOT** be installed.\n\n`EXPRESSION` is a PowerShell expression. When it returns `$true`, the\n`ACTION` is executed and no further filters are evaluated.\n\nInside an expression, the Windows Update [IUpdate interface](https://msdn.microsoft.com/en-us/library/windows/desktop/aa386099(v=vs.85).aspx) can be referenced by the `$_` variable.\n\n# Development\n\nInstall the dependencies:\n\n* [Docker](https://docs.docker.com/engine/install/).\n* [Visual Studio Code](https://code.visualstudio.com).\n* [Dev Container plugin](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).\n* [`windows-2022-amd64` vagrant box](https://github.com/rgl/windows-vagrant).\n\nOpen this directory with the Dev Container plugin.\n\nOpen `bash` inside the Visual Studio Code Terminal.\n\nBuild:\n\n```bash\nmake\n```\n\nTest with QEMU:\n\n```bash\nmake test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fpacker-plugin-windows-update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgl%2Fpacker-plugin-windows-update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fpacker-plugin-windows-update/lists"}