Commit Graph

2373 Commits

Author SHA1 Message Date
Ken Kaizu
2d29db6893 fix: Policy check summary not shown outside of "Show Output" details (#2837) 2022-12-20 07:28:12 -06:00
Ken Kaizu
d33bd0f536 renovate: maintenance renovate config/ci (#2832)
* add renovate config validator github action

* renovate allow update node LTS docker image / aggregate testing-env docker image update PR

* Update .github/workflows/renovate-config.yml

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* renovate config validate run npx directly

* revert invalid renovate syntax

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2022-12-19 17:00:01 -06:00
Fabiano Soares Honorato
cb485f11ee feat: Add pre and post workflow hook status (#2441)
* Add pre and post workflow hook status

* fix missing mocks

* fix pre/post workflow hooks tests

* add cmd output to file

* fix typo

* add cmd output to file on pre workflow hooks

* Add hooks output to web UI

* Remove unnecessary dependencies

* Clean the code and make tests work again

* Make lint happy

* Small fixes, create dedicated UUID generator and docs

* Add missing commentary

* Use matchers instead of mocking for tests and fix e2e tests

* Change 'OUTPUT_FILE' to 'OUTPUT_STATUS_FILE'

* Reduce SendWorkflowHook calls on hooks

* Apply suggestions from code review

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
v0.22.0-pre.20221219
2022-12-19 14:20:34 -06:00
renovate[bot]
36686597b8 chore(deps): update redis docker tag to v7 (#2831)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-19 09:36:30 -06:00
Ken Kaizu
3a61a3d7fb website: upgrade vuepress 0.x to 1.x (#2828)
* docs: upgrade vuepress 0.x to 1.x

* add .node-version
2022-12-19 10:02:38 -05:00
Ken Kaizu
08e9c5a17e feat: customize atlantis.yaml file name in server side config (#2798)
* feat: customize atlantis.yaml file name in server side config

* Update server/events/vcs/bitbucketcloud/client.go

* Update server/events/vcs/bitbucketserver/client.go

* Update server/events/vcs/not_configured_vcs_client.go

* Update server/events/vcs/azuredevops_client.go

* docs: repo_config_file multiple atlantis servers usecase example

* docs: multiple atlantis server usage which show how to call one atlantis server

* Update runatlantis.io/docs/server-side-repo-config.md

* Apply suggestions from code review

* Update runatlantis.io/docs/server-side-repo-config.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2022-12-18 23:02:38 -06:00
Sebastian Poxhofer
01a9a5f5a7 feat: dismiss approvals when planning (#2696)
* feat: dismiss approvals when planning

* feat: add pagination and move query in separate method

* tests: add test for dismissing

* refactor: fix linting issue

* implement change requests

* Update cmd/server.go

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2022-12-18 22:31:10 -06:00
renovate[bot]
c00cfa407d chore(deps): update raviqqe/muffet docker tag to v2.6.2 (#2822)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-18 22:02:06 -06:00
renovate[bot]
efcfac8ddf chore(deps): update actions/checkout action to v3.2.0 (#2819)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-18 21:14:10 -06:00
renovate[bot]
037c064a79 chore(deps): update dependency open-policy-agent/conftest to v0.36.0 (#2820)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-18 21:02:27 -06:00
renovate[bot]
bae3e74e72 fix(deps): update module github.com/slack-go/slack to v0.12.0 (#2825)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-18 20:54:19 -06:00
renovate[bot]
1c46d766ad chore(deps): update ghcr.io/runatlantis/testing-env docker tag to v2022.12.19 (#2824)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-18 20:53:37 -06:00
renovate[bot]
54bbd47562 chore(deps): update ghcr.io/runatlantis/testing-env docker tag to v2022.12.19 (#2823)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-18 20:25:54 -06:00
renovate[bot]
b45a88d790 chore(deps): update dependency open-policy-agent/conftest to v0.36.0 (#2821)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-18 20:24:39 -06:00
renovate[bot]
6fadd6a5af fix(deps): update github.com/mohae/deepcopy digest to c48cc78 (#2814)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-18 18:55:20 -06:00
James Williams
71819a28f4 Switch clone URL structure for *.visualstudio.com URLs for AzureDevOps (#2810)
* Switch clone URL structure for visualstudio.com URLs

* Add comment for ADO URL if statement. Add test

* Test else statement in ParseAzureDevopsRepo
2022-12-18 18:32:46 -06:00
renovate[bot]
439ac87912 fix(deps): update module github.com/moby/moby to v20.10.22+incompatible (#2817)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-18 18:32:31 -06:00
renovate[bot]
55c99cdfce fix(deps): update github.com/shurcool/githubv4 digest to 70889c5 (#2815)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-18 18:31:22 -06:00
Ken Kaizu
bbc7b9969a feat: renovate handle regexManagers to update conftest/tf versions (#2807)
* chore(deps): add renovate.json

* feat: renovate handle regexManagers to update conftest/tf versions

* Update .github/renovate.json5

* Update .github/renovate.json5

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2022-12-18 18:21:01 -06:00
Ken Kaizu
ab327a2238 docs: add more commands in using-atlantis.md (#2808)
* docs: add more commands in using-atlantis.md

* docs: add how-atlantis-works child page links

* docs: using-atlantis shows available executable names

* Update runatlantis.io/docs/using-atlantis.md

* remove run help doc, because this feature might be deprecated

* Apply suggestions from code review

* Update runatlantis.io/docs/using-atlantis.md

* revert run help command usage
2022-12-18 09:42:19 -06:00
Ken Kaizu
063bbb93c9 refactor: e2e test ensure conftest command to check conftest version is greater or equal to specific version (#2812) 2022-12-18 03:31:40 -06:00
Ken Kaizu
b6f372416f refactor: add contest command into testing-image for refactoring e2e conftest ensure logic to upgrade conftest upgrading (#2811) 2022-12-17 17:37:49 -06:00
Fabiano Soares Honorato
6a7f79e749 Metrics initialization (#2767)
* Add builder metrics initialization

* Add pull_closed metrics initialization

* Add builder metrics initialization

* use InitCounter from metrics package to initialize prometheus counters
2022-12-16 22:22:06 -06:00
SSKLCP
a96a88ec97 Adding a check for deleted comments in AzureDevOps event handler (#2804)
* Adding a check for deleted comments in AzureDevOps event handler

* adding test for ignoring azure devops deleted comments

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2022-12-16 22:18:29 -06:00
Ken Kaizu
8d74878f9d feat: customize vcs comment command executable name (#2805) 2022-12-16 19:16:36 -08:00
nitrocode
585ce1e888 docs: Mention --enable-regexp-cmd requires the project name key (#2796)
* docs: mention the name key for regexp cmd

* docs: add name key to auto-generation
2022-12-15 13:51:53 -08:00
Li Lin
812db63dfd Fix remote execution on Terraform Cloud after v1.1.0 (#2793)
* Fix remote execution on Terraform Cloud after v1.1.0

* Do not check terraform version for -no-color

* Move string comparison for newer version earlier

* Update remote apply test
2022-12-15 12:54:43 -08:00
Ken Kaizu
6ecb7a6f76 replace www.terraform.io doc urls (#2797) 2022-12-14 18:07:40 -06:00
dependabot[bot]
bab5c62451 build(deps): bump goreleaser/goreleaser-action from 3 to 4 (#2790)
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 3 to 4.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](https://github.com/goreleaser/goreleaser-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-13 12:29:27 -06:00
dependabot[bot]
b80e5d36f7 build(deps): bump github.com/google/go-github/v48 in /e2e (#2791)
Bumps [github.com/google/go-github/v48](https://github.com/google/go-github) from 48.0.0 to 48.2.0.
- [Release notes](https://github.com/google/go-github/releases)
- [Commits](https://github.com/google/go-github/compare/v48.0.0...v48.2.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-github/v48
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-13 12:29:07 -06:00
dependabot[bot]
b1dfbf8ee8 build(deps): bump github.com/xanzy/go-gitlab from 0.76.0 to 0.77.0 (#2792)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.76.0 to 0.77.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.76.0...v0.77.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-13 12:28:41 -06:00
dependabot[bot]
bef54c7134 build(deps): bump golang from 1.19.3 to 1.19.4 in /testing (#2789)
Bumps golang from 1.19.3 to 1.19.4.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-13 12:28:14 -06:00
nitrocode
350a158b6b bugfix: add missing build-args to dev image (#2787) 2022-12-13 12:14:56 -06:00
nitrocode
c0672186fc Add dependabot for e2e and base container (#2788) 2022-12-13 12:14:47 -06:00
Benoît Sauvère
db9f02265a docs(changelog): explicitly list the tf versions <1.x removal in the CHANGELOG.md (#2780)
* docs(changelog): explicitly list the tf versions <1.x removal in the CHANGELOG.md

* Apply suggestions from code review

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
v0.21.1-pre.20221213
2022-12-13 00:05:27 -06:00
Jon Gilmore
f974fb5113 docs(ha): wording update when using redis (#2771)
* docs(ha): wording update when using redis

Because it is now possible to use redis as a backend locking DB for Atlantis, this FAQ should be updated.

* Update runatlantis.io/docs/faq.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2022-12-12 09:23:20 -06:00
Darren Worrall
a56258435b Document the --quiet-policy-checks in the policy check doc (#2777)
* Document the `--quiet-policy-checks` in the policy check doc

* Update runatlantis.io/docs/policy-checking.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2022-12-12 09:16:14 -06:00
dependabot[bot]
183c9c10c7 build(deps): bump github.com/go-test/deep from 1.0.8 to 1.1.0 (#2779)
Bumps [github.com/go-test/deep](https://github.com/go-test/deep) from 1.0.8 to 1.1.0.
- [Release notes](https://github.com/go-test/deep/releases)
- [Changelog](https://github.com/go-test/deep/blob/master/CHANGES.md)
- [Commits](https://github.com/go-test/deep/compare/v1.0.8...v1.1.0)

---
updated-dependencies:
- dependency-name: github.com/go-test/deep
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-12 09:11:12 -06:00
dependabot[bot]
7c054e237c build(deps): bump golang.org/x/term from 0.2.0 to 0.3.0 (#2778)
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/golang/term/releases)
- [Commits](https://github.com/golang/term/compare/v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-12 09:10:34 -06:00
nitrocode
82a2f00860 Use atlantis-base:2022.12.12 (#2772) 2022-12-11 22:00:10 -06:00
nitrocode
785b4cf76f Use correct image suffix for alpine/debian (#2775) 2022-12-11 21:49:51 -06:00
nitrocode
7a29286c3c Use correct image suffix for alpine/debian (#2774) 2022-12-11 21:07:49 -06:00
nitrocode
cd838c8785 alpine: Pin git=2.38.2-r0 (#2773) 2022-12-11 20:53:28 -06:00
nitrocode
5773945b4b Separate alpine image (#2770) 2022-12-11 20:22:51 -06:00
Mark Keisler
855717271f docs: terraform version usage after allowing additional required_version specifiers (#2760)
* Clarify the docs about setting the terraform version, especially since
v0.21.0

* Address comments about adding further detail and examples

Also updated versions mentioned to be more recent.
2022-12-11 11:14:08 -06:00
nitrocode
9ca57d6189 Bump base to 2022-12-10 (#2769) 2022-12-11 00:54:29 -06:00
nitrocode
f8a2091929 Bump alpine-3.17 (#2768) 2022-12-11 00:27:03 -06:00
Ken Kaizu
4d957836ad Enable or disable repo_locking per repo in repos.yaml and atlantis.yaml (#2700)
* disable repo locking repos.yaml and atlantis.yaml with allow override

* rename disable_repo_locking into repo_locking

* add both enable/disable repo_locking test

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2022-12-09 16:13:31 -06:00
Fabiano Soares Honorato
66dc30e755 feat: prevent planning and applying directories outside PR scope using --restrict-file-list (#2440)
* Add --strict-plan-file-list config

* Update server.go

* Update server-configuration.md

* Update server_test.go

* Run gofmt -w

* Add --strict-plan-file-list for projects

* Add --strict-plan-file-list tests

* Change --strict-plan-file-list to --restrict-file-list

* Update --restrict-file-list documentation

* Update --restrict-file-list and --enable-regexp-cmd documentation

Co-authored-by: Fabiano Honorato <fabiano.honorato@ifood.com.br>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2022-12-09 09:33:40 -06:00
Michel Z. Santello
c800f706e4 fix(gitlab_client): prevent duplicate pipelines in gitlab merge requests (#2745)
* fix(gitlab_client): change CommitStatus update logic to prevent duplicated pipelines in MRs

* chore: refactor refTarget logic

* chore: fix tests

* chore: fix lint

* chore: remove nested if
v0.21.0-pre.20221207
2022-12-07 13:14:39 -08:00