{"id":20043249,"url":"https://github.com/cyberboss/install-winget","last_synced_at":"2025-05-05T08:32:43.460Z","repository":{"id":176493798,"uuid":"658808816","full_name":"Cyberboss/install-winget","owner":"Cyberboss","description":"Action to install latest winget CLI on Windows runners","archived":true,"fork":false,"pushed_at":"2025-04-25T21:55:18.000Z","size":88,"stargazers_count":16,"open_issues_count":5,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-25T22:29:39.840Z","etag":null,"topics":["actions","github-actions","github-actions-ci","install","installer","installer-script","windows","windows-2022","winget","winget-cli"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cyberboss.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":"2023-06-26T14:30:16.000Z","updated_at":"2025-04-25T21:55:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea179161-31be-4a2a-aac0-464eb0b533dc","html_url":"https://github.com/Cyberboss/install-winget","commit_stats":null,"previous_names":["cyberboss/install-winget"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyberboss%2Finstall-winget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyberboss%2Finstall-winget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyberboss%2Finstall-winget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyberboss%2Finstall-winget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cyberboss","download_url":"https://codeload.github.com/Cyberboss/install-winget/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252466914,"owners_count":21752461,"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":["actions","github-actions","github-actions-ci","install","installer","installer-script","windows","windows-2022","winget","winget-cli"],"created_at":"2024-11-13T10:55:40.546Z","updated_at":"2025-05-05T08:32:43.452Z","avatar_url":"https://github.com/Cyberboss.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# install-winget\n\nAction to install [winget-cli](https://github.com/microsoft/winget-cli) default v1.8.1911 on Windows runners. Other versions can be installed by changing `wget_release_id` parameter.\n\nCurrently only supports `windows-2022` runner image.\n\n# DEPRECATION NOTICE\n\nThe `windows-2025` GitHub actions runner image now comes preinstalled with `winget`. If the version packaged needs to be upgraded, it can be done with the following command.\n\n```\nwinget upgrade winget --accept-package-agreements --accept-source-agreements --disable-interactivity\n```\n\nThis action will continue to work in its previous capacity on `windows-2022` images. `windows-2025` will not be supported.\n\nThank you a so much for using my crappy hack action.\n\n## Usage\n\n```yml\n    - name: Install winget\n      uses: Cyberboss/install-winget@v1\n```\n\n### Example\n\n`.github/workflows/test-job.yml`\n```yml\njobs:\n  test-job:\n    name: Test Job\n    runs-on: windows-latest\n    steps:\n    - name: Install winget\n      uses: Cyberboss/install-winget@v1\n      with:\n        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        wget_release_id: latest\n\n    - name: Install wingetcreate\n      run: winget install wingetcreate --disable-interactivity --accept-source-agreements\n```\n\n### Inputs\n\n#### `GITHUB_TOKEN` (Optional)\n\nThe GitHub token to use when interacting with the GitHub API. Used to bypass unauthenticated rate limits.\n\n**Recommendation is to set this to ${{ secrets.GITHUB_TOKEN }} or some other available token** as GitHub runners tend to often come with exhausted rate limits.\n\n#### `wget_release_id` (Optional)\n\nThis is used to be able to pin (make immutable) the version of winget that is taken github. To see which versions (you need the release-id) is possible to use plese check the github API for the release of [winget-cli](https://github.com/microsoft/winget-cli) this can be checked by looking for the topmost `id:` attribute here: https://api.github.com/repos/microsoft/winget-cli/releases . \n\n### Outputs\n\n#### `winget-version`\n\nThe output of `winget --version` for the installed version.\n\n```yml\n    - uses: Cyberboss/install-winget@v1\n      id: stepid\n\n    - run: echo '${{ steps.stepid.outputs.winget-version }}' # i.e. v1.6.1573-preview\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberboss%2Finstall-winget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyberboss%2Finstall-winget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberboss%2Finstall-winget/lists"}