17911 Commits
Author SHA1 Message Date
Wilken Rivera f0e24a249b Cut release v1.8.2 v1.8.2 2022-06-21 13:01:18 -04:00
Wilken Rivera 172724e466 Bump to go1.17.11 2022-06-21 13:01:18 -04:00
Wilken Rivera 8d3d4e9b54 Update CHANGELOG for 1.8.2
* Add gh-11854 to changelog
2022-06-21 13:01:18 -04:00
Sylvia Moss b849ace27b Fail HCP datasources for revoked iteration (#11854) 2022-06-21 17:24:41 +02:00
Wilken Rivera 64ee27cb49 Fix typo in release yaml 2022-06-14 21:31:27 -04:00
Wilken Rivera d34c6fee03 Update permission to allow publishing release 2022-06-14 21:26:56 -04:00
Wilken Rivera 10306d4187 Fix permissions for nightly-release.yml 2022-06-14 20:36:48 -04:00
Wilken Riveraandneilnaveen cc5898022a update action permissions (#11837)
* chore: Set permissions for GitHub actions

 Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: neilnaveen <[email protected]>

* Update permissions for newly added actions

* Remove deleted actions

Co-authored-by: neilnaveen <[email protected]>
2022-06-14 12:08:39 -04:00
Wilken Rivera 0e5ddcb133 Update plugins that use StepDownload to latest version (#11844) 2022-06-13 10:39:21 -04:00
Wilken Rivera 0324e0883a Bump packer-plugin-sdk to latest version v0.3.0 (#11843)
This change brings in updates to Packer's usage of the go-getter plugin
used within the SDK for downloading ISO files. This can be a potentially
breaking change for some plugins as the update go-getter settings in the
SDK prevent reading/writing to suddir that require upload path
traversal (e.g /tmp/.../etc/hosts).

This change also includes 30 minute maximum timeouts for file
downloading to prevent resource exhaustion. This can be an issue for
very large or slow downloads if they exceed more then 30 minutes to
complete.
2022-06-13 09:22:58 -04:00
Jenna Goldstrich 1e316c9076 Remove HCP Packer acceptance tests (#11842)
* remove acceptance tests that have been moved to private repo

* Remove HCP env vars from Acceptance Test nightly run
2022-06-10 11:58:44 -04:00
Wilken Rivera 846e4e6443 Associate Packer build to HCP Packer parent iteration (#11832)
* Add support for  data source lookup

* Update failing test

* Fix typo for HCP_PACKER_BUILD_FINGERPRINT env in test
* Add test Fingerprint where needed; failing tests were not showing
  because they are properly set for acctest

* Update to use BuildContext
2022-06-10 11:39:56 -04:00
dependabot[bot] 5bf26b21d2 Bump semver-regex from 3.1.3 to 3.1.4 in /website (#11836)
Bumps [semver-regex](https://github.com/sindresorhus/semver-regex) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/sindresorhus/semver-regex/releases)
- [Commits](https://github.com/sindresorhus/semver-regex/commits/v3.1.4)

---
updated-dependencies:
- dependency-name: semver-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-06 21:11:03 -04:00
Mahyar Saffari Moqaddam 3c9fb89a9f Update engine.mdx (#11833)
Corrected "indended" typo
2022-06-03 18:41:29 -04:00
dependabot[bot] a2d64720d7 Bump actions-ecosystem/action-create-comment from 1.0.0 to 1.0.2 (#11830)
Bumps [actions-ecosystem/action-create-comment](https://github.com/actions-ecosystem/action-create-comment) from 1.0.0 to 1.0.2.
- [Release notes](https://github.com/actions-ecosystem/action-create-comment/releases)
- [Commits](https://github.com/actions-ecosystem/action-create-comment/compare/v1.0.0...v1.0.2)

---
updated-dependencies:
- dependency-name: actions-ecosystem/action-create-comment
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-02 20:01:59 -04:00
dependabot[bot] 8e788a5f73 Bump actions-ecosystem/action-add-labels from 1.1.0 to 1.1.3 (#11829)
Bumps [actions-ecosystem/action-add-labels](https://github.com/actions-ecosystem/action-add-labels) from 1.1.0 to 1.1.3.
- [Release notes](https://github.com/actions-ecosystem/action-add-labels/releases)
- [Commits](https://github.com/actions-ecosystem/action-add-labels/compare/v1.1.0...v1.1.3)

---
updated-dependencies:
- dependency-name: actions-ecosystem/action-add-labels
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-02 20:01:40 -04:00
Wilken Rivera 805f8a4a86 Remove Linux package service configs and pre/post install scripts (#11831)
Packer does not require the installation of a Packer user or a service for Packer.
This change removes the preinst and postrm user scripts, and the config_dir directive for Packer rpm installations.

Closes #11828
2022-06-01 16:07:22 -04:00
Lucas BajoletandWilken Rivera 08157fbdce Add workflow to link to discuss on new question (#11825)
* workflows: + automatic label/response on question

When a user asks a question through an issue on this repository, we
automatically add a comment, pointing to the forums, and add a label to
the issue so we can spot more easily which issues need to be acted on.

* .github: + link to packer community for questions

As extra to the github action, this commit adds an extra button to the
new issue template, leading directly to the discuss forums for Packer

* .github: add auto-stale-close issue action

As follow-up to the labelling of question type issues as needs-reply, we
add another action that will automatically mark an issue as stale if it
has not been updated for 3 weeks, and close the issue one week after
marking it as stale.

* Update .github/workflows/issues-opened.yml

Co-authored-by: Wilken Rivera <[email protected]>
2022-05-31 15:47:44 -04:00
Vasili b9c28c7a8f Clarify documentation for template file function (#11798) 2022-05-31 10:10:24 -04:00
Lucas Bajolet c99b300e3a Add support for Env in remote shell provisioners (#11819)
* provisioner/shell: add support for Env variables

As mentioned in issue #11670, the Shell provider did not support Env
variable declarations in the HCL templates.
This commit adds the capability to the code.

* provisioner/powershell: add support for Env vars

* provisioner/windows-shell: support Env variables
2022-05-31 09:49:38 -04:00
Lucas Bajolet cbc67b7636 Merge pull request #11792 from teddylear/feat-pause_after-powershell
feat: Add pause_after config to powershell provisioner like shell
2022-05-30 16:47:25 -04:00
Lucas Bajolet 035c133a7d Merge pull request #11821 from hashicorp/linter_pass
Remove dead code / superfluous fmt.Sprintf statements
2022-05-30 13:57:40 -04:00
Wilken Rivera ecacd59f0f Put in dev mode 1.8.2 (#11822) 2022-05-30 10:26:36 +02:00
teddylear d00a41c6ae fix: updates to have make fmt-check and ci-lint pass 2022-05-27 19:36:41 -04:00
Lucas Bajolet 71752c9e1e powershell/provisioner: remove useless fmt.Sprintf
The fmt.Sprintf statement in Provisioner.Provision took a plain string
as parameter, without any arguments, making it futile to call.
2022-05-27 16:44:55 -04:00
Lucas Bajolet 673a97290a provisioner/powershell: remove unused variable
The retryableSleep variable in the powershell provisioner was defined
but never used, so we can safely rename it.
2022-05-27 16:44:55 -04:00
Wilken Rivera 467529f597 Cut release 1.8.1 v1.8.1 2022-05-27 13:17:11 -04:00
Jenna Goldstrich 4449328786 Revert "Migrate to internal Registry tests (#11806)" (#11817)
This reverts commit 961c1d7046.
2022-05-26 20:02:48 -04:00
Jenna Goldstrich fc786eaea1 Merge pull request #11816 from hashicorp/revert-11807-jenna/workflow_dispatch
Revert "Workflow Dispatch on Acceptance test Syntax error "
2022-05-26 12:44:39 -07:00
Jenna Goldstrich 96a3f85c02 Revert "- to _ for workflow_dispatch (#11807)"
This reverts commit de196e1306.
2022-05-26 12:44:02 -07:00
Jenna Goldstrich 588aee2754 Merge pull request #11815 from hashicorp/revert-11808-hpats/add-ssh-key
Revert "Add SSH key for HPATS to pull internal repo"
2022-05-26 12:43:54 -07:00
Jenna Goldstrich 0451b6865e Revert "Add SSH key for HPATS to pull internal repo (#11808)"
This reverts commit e8c623f75f.
2022-05-26 12:41:31 -07:00
Jenna Goldstrich e82f0a4ddc Merge pull request #11814 from hashicorp/revert-11809-hpats/fix-hpats-repo-link
Revert "Remove .github from repo clone"
2022-05-26 12:41:04 -07:00
Jenna Goldstrich 77eaeedde1 Revert "Remove .github from repo clone (#11809)"
This reverts commit f94e3ea01b.
2022-05-26 12:38:51 -07:00
Jenna Goldstrich 37591bc405 Merge pull request #11813 from hashicorp/revert-11810-hpats/try-curl-for-getting-hcp-access-token-in-hpats
Revert "Try curl for getting HCP Access Token in HPATS"
2022-05-26 12:38:35 -07:00
Jenna Goldstrich 81aedc6dbf Revert "Try curl for getting HCP Access Token in HPATS (#11810)"
This reverts commit 2355853918.
2022-05-26 12:31:46 -07:00
Jenna Goldstrich 89dc1c9fdf Merge pull request #11812 from hashicorp/revert-11811-hpats/remove-access-token-check
Revert "Remove Access Token Check, Silence curl request, and Merge Clone & Test steps in HPATS"
2022-05-26 12:31:34 -07:00
Jenna Goldstrich 6497a75783 Revert "Remove Access Token Check, Silence curl request, and Merge Clone & Test steps in HPATS" 2022-05-26 12:19:38 -07:00
Jenna Goldstrich 2e913bcd28 Merge pull request #11811 from hashicorp/hpats/remove-access-token-check
Remove Access Token Check, Silence curl request, and Merge Clone & Test steps in HPATS
2022-05-26 11:50:00 -07:00
Jenna Goldstrich 394c5e1175 Merge Clone and run steps cause it doesn't look like CDing into hpats directory works 2022-05-26 11:39:04 -07:00
Jenna Goldstrich 599db968e5 Remove Access Token Check, and silence curl request 2022-05-26 11:29:59 -07:00
Jenna Goldstrich 2355853918 Try curl for getting HCP Access Token in HPATS (#11810) 2022-05-26 14:18:44 -04:00
Jenna Goldstrich f94e3ea01b Remove .github from repo clone (#11809) 2022-05-26 12:46:56 -04:00
Jenna Goldstrich e8c623f75f Add SSH key for HPATS to pull internal repo (#11808) 2022-05-26 12:19:20 -04:00
Jenna Goldstrich de196e1306 - to _ for workflow_dispatch (#11807) 2022-05-26 11:54:43 -04:00
Jenna Goldstrich 961c1d7046 Migrate to internal Registry tests (#11806)
* Implement HPATS in Nightly build, delete registry par test

* Update .github/workflows/acceptance-test.yml

* add workflow-dispatch
2022-05-26 11:51:38 -04:00
Wilken Rivera adc130a73e Update project GitHub actions (#11805)
To assist in tracking newly created issues and pull-requests a new set
of actions is being added to assign inbound request to a new project
board. Where the team can view, filter, and organize in bound requests
across all Packer repos.
2022-05-25 17:01:04 -04:00
Wilken Rivera 23b492bf7d Update CHANGELOG 2022-05-25 15:58:44 -04:00
Wilken Rivera 6f1cefa53d Bump versions for all recently plugins (#11802)
* Bump versions for all recently plugins

This change brings all plugins in Packer core up to date to address
issues with legacy SSH RSA-SHA1 key algorithms.

Related to: https://github.com/hashicorp/packer/pull/11761

* Update repository for packer-plugin-outscale
2022-05-25 15:51:40 -04:00
teddylear 36fc4a9f3d docs: Update unix packer config file location docs (#11797) 2022-05-23 15:47:23 -04:00