Commit Graph

1737 Commits

Author SHA1 Message Date
Mathieu Cantin
bebb2f2bfe Suggest to run integration tests in Docker (#1438) 2021-03-04 15:15:09 -08:00
dependabot[bot]
872756bbe7 build(deps): bump prismjs from 1.21.0 to 1.23.0 (#1435) 2021-03-03 22:37:47 +00:00
Nish Krishnan
374e826393 Revert "fix(output): Remove Refreshing state... from output (#1352)" (#1431)
This reverts commit 7301febcb4.
2021-02-25 09:35:52 -08:00
Mathieu Cantin
7301febcb4 fix(output): Remove Refreshing state... from output (#1352)
* fix(output): Remove Refreshing state... from output

Since Terraform 0.14.0 there are no separator between refreshing plan and the plan.

* Fix comment typo
2021-02-25 08:34:35 -08:00
Dalton Hubble
00a5bc0fc0 Add a branch regex matcher to the server side repo config (#1383)
* Add a branch regex to the repo.yaml config to allow Atlantis to
accept only pull requests with a given base branch (the branch
a PR would merge _into_).
* `branch` is optional. By default its unset and Atlantis will match
webhooks for pull requests for any branch (no change)

Match any PR,

```
repos:
  - id: /.*/
    branch: /.*/
```

Match only PRs with master or main base branch.

```
repos:
  - id: /.*/
    branch: /(main|master)/
```

Some repos have special pull request branching practices. For example,
plan/apply from feature branches merging into master, but separate flows
for merging master into a release branch (where Atlantis isn't used).
Adding a regex allows for flexible workflow options. For example, you
could have Atlantis ignore "release" branches.
2021-02-24 12:52:30 -08:00
Gábor Lipták
832afeaec1 Correct typo (#1424) v0.17.0-beta 2021-02-23 17:04:35 -05:00
Gábor Lipták
ec84dc861f Correct typo (#1425) 2021-02-23 17:04:07 -05:00
Nish Krishnan
a5152b399f Update with 0.17.0-beta (#1426)
* Update bundle.yaml

* Update main.go
2021-02-23 12:59:53 -08:00
Nish Krishnan
7bc1d3c8b2 Add 0.17.0-beta (#1422) 2021-02-23 09:45:26 -08:00
Nish Krishnan
76b8e357c5 Add policy checking configuration docs (#1423)
* Update server-configuration.md

* Update server-side-repo-config.md

* Update server-configuration.md

* Update server-side-repo-config.md
2021-02-23 09:45:11 -08:00
myoung34
a6e5c16608 Feature: Add HEAD_COMMIT env var (#1392) 2021-02-22 21:47:00 -08:00
Nish Krishnan
8598c37671 Support pre-workflow hooks on all comment/auto triggered commands. (#43) (#1418)
Fixes pre-workflow-hooks not logging errors #1371
Prevents pre-workflow-hook from locking and cloning the dir if there are no hooks registered. #1342
2021-02-22 08:34:26 -08:00
rui
5e4bde4cc4 deps: bump go to v1.16 (#1414)
* deps: bump go to v1.16

Signed-off-by: Rui Chen <rui@chenrui.dev>

* go mod tidy for go.sum

Signed-off-by: Rui Chen <rui@chenrui.dev>

* update go version for go.mod
2021-02-18 12:27:58 -05:00
rui
4fc136c048 chore(deps): update tf to v0.14.7 (#1416)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-02-17 17:58:01 -05:00
dependabot[bot]
66e189ddbc build(deps): bump github.com/xanzy/go-gitlab from 0.43.0 to 0.44.0 (#1411)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.43.0 to 0.44.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.43.0...v0.44.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-17 00:16:55 -05:00
dependabot[bot]
fd4a73b5ec build(deps): bump github.com/elazarl/go-bindata-assetfs (#1412)
Bumps [github.com/elazarl/go-bindata-assetfs](https://github.com/elazarl/go-bindata-assetfs) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/elazarl/go-bindata-assetfs/releases)
- [Changelog](https://github.com/elazarl/go-bindata-assetfs/blob/master/.goreleaser.yml)
- [Commits](https://github.com/elazarl/go-bindata-assetfs/compare/v1.0.0...v1.0.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-17 00:16:48 -05:00
rui
6d178e22e3 deps: update website_link_checker (#1405)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-02-13 13:15:55 -05:00
rui
413254f122 deps: bump golang to v1.15 (#1403)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-02-13 13:15:42 -05:00
rui
76270a818c deps: dumb-init 1.2.5 (#1404)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-02-13 13:15:33 -05:00
rui
29a369a238 deps: bump tf to v0.14.6 (#1402)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-02-12 12:04:21 -05:00
dependabot[bot]
c2f94b9d76 Bump github.com/microcosm-cc/bluemonday from 1.0.1 to 1.0.4 (#1366)
Bumps [github.com/microcosm-cc/bluemonday](https://github.com/microcosm-cc/bluemonday) from 1.0.1 to 1.0.4.
- [Release notes](https://github.com/microcosm-cc/bluemonday/releases)
- [Commits](https://github.com/microcosm-cc/bluemonday/compare/v1.0.1...v1.0.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-12 11:59:16 -05:00
dependabot[bot]
c9c71cde38 Bump github.com/mitchellh/go-homedir from 1.0.0 to 1.1.0 (#1379)
Bumps [github.com/mitchellh/go-homedir](https://github.com/mitchellh/go-homedir) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/mitchellh/go-homedir/releases)
- [Commits](https://github.com/mitchellh/go-homedir/compare/v1.0.0...v1.1.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-12 11:59:09 -05:00
dependabot[bot]
908e5e4ec6 Bump github.com/Masterminds/sprig/v3 from 3.2.0 to 3.2.2 (#1401)
Bumps [github.com/Masterminds/sprig/v3](https://github.com/Masterminds/sprig) from 3.2.0 to 3.2.2.
- [Release notes](https://github.com/Masterminds/sprig/releases)
- [Changelog](https://github.com/Masterminds/sprig/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Masterminds/sprig/compare/v3.2.0...v3.2.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-12 11:58:53 -05:00
dependabot[bot]
444d853806 Bump github.com/go-test/deep from 1.0.3 to 1.0.7 (#1400)
Bumps [github.com/go-test/deep](https://github.com/go-test/deep) from 1.0.3 to 1.0.7.
- [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.3...v1.0.7)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-12 11:51:08 -05:00
Josh Reichardt
bcb37253c5 deps: bump alpine to v3.13 (#1389) 2021-02-12 10:57:19 -05:00
dependabot[bot]
62a13100d6 Bump github.com/xanzy/go-gitlab from 0.34.1 to 0.43.0 (#1387)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.34.1 to 0.43.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.34.1...v0.43.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-12 10:29:57 -05:00
dependabot[bot]
b20f753083 Bump github.com/urfave/cli from 1.20.0 to 1.22.5 (#1380)
Bumps [github.com/urfave/cli](https://github.com/urfave/cli) from 1.20.0 to 1.22.5.
- [Release notes](https://github.com/urfave/cli/releases)
- [Changelog](https://github.com/urfave/cli/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/urfave/cli/compare/v1.20.0...v1.22.5)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-12 10:29:18 -05:00
rui
8c8e72e3a4 ci: remove vendor folder (#1394)
* ci: remove vendor folder

Signed-off-by: Rui Chen <rui@chenrui.dev>

* remove `-mod=vendor` build arg

Signed-off-by: Rui Chen <rui@chenrui.dev>

* remove vendor path ref
2021-02-12 09:57:14 -05:00
Sarvar Muminov
af2a806870 Implement a new policy check workflow (#1317)
* Adding policy_check support into yaml config

* Added policy check model and runtime structs

* Adding BuildPolicyCheckCommand to ProjectCommandBuilder

* Return incorrectly deleted code

* Remove BuildAutoPolicyPlanCommand from ProjectCommandBuilder

* Split runAutoCommand into two functions

runAutoPlanCommand - does what originally RunAutoplancommand was doing
except now it returns CommandResult and []models.ProjectCommandContext
runAutoPolicyCheckCommand - accepts CommandContext, CommandResult, and
[]models.ProjectCommandContext as arguments and runs PolicyCheckStep runner

* Refactor RunCommentCommand
* Remove BuildPolicyCheckCommand and rename StepCmdExec back to TerraformExec
* Add policy step runner logic and conftest interfaces.
* Add show step runner to policy check stage.

* Adding models.PolicyCheckCommand to buildCtx

This also means buildPlanAllCommands call buildCtx twice once with
models.PlanCommand and once with models.PolicyCheckCommand

* Adding new project_command_builder that supports policy_check

* Refactoring PolicyCheck specific logic into a PolicyCheckProjectCommandBuilder

* Moving events.CommandContext to models.CommandContext this will allow me
to remove buildCtx method and move ProjectCommandContext creation into
models package

* Policy Owners might be different types, for that reason we are
refactoring Owners into its own struct with specific keys defining
different owner types

Co-authored-by: Nish Krishnan <nishk@lyft.com>
Co-authored-by: Nish Krishnan <nishkrishnan@users.noreply.github.com>
2021-02-10 18:13:44 -08:00
Nish Krishnan
10d7b282e8 Fix e2e test fixtures for tf0.14. (#1396) 2021-02-10 16:48:35 -08:00
Nish Krishnan
fe528c0ba0 0.16.1 Version Release (#1388)
* 0.16.1 Version Release

* Update main.go

* Update bundle.yaml

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Luke Kysow <1034429+lkysow@users.noreply.github.com>

Co-authored-by: Luke Kysow <1034429+lkysow@users.noreply.github.com>
v0.16.1
2021-02-08 15:12:48 -08:00
rui
6c007e6946 doc: add stargazers chart (#1386)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-02-05 17:54:15 -05:00
Marc Goujon
434b4f5074 Fixed bug in allowed_workflows logic (#1377) 2021-01-30 20:32:10 -08:00
rui
9bd534e1b7 terraform 0.14.5 (#1376)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-01-30 14:11:13 -05:00
Nish Krishnan
eaafd438f8 Add stale github action (#1373)
Right now this is only configured for PRs but can be used for issues as well.  This only cleans up PRs for which the customer is not responding to as of now.
2021-01-29 09:31:03 -08:00
dependabot[bot]
fe6dd45d9d Bump github.com/Masterminds/sprig/v3 from 3.1.0 to 3.2.0 (#1367)
Bumps [github.com/Masterminds/sprig/v3](https://github.com/Masterminds/sprig) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/Masterminds/sprig/releases)
- [Changelog](https://github.com/Masterminds/sprig/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Masterminds/sprig/compare/v3.1.0...v3.2.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-28 12:37:35 -08:00
Mihai Plasoianu
2c4e0c3409 Set TF_WORKSPACE env var (#1363) 2021-01-28 11:56:08 -08:00
Radon Rosborough
63a6e6450e Pass atlantis/apply when there are no plans (#1323) 2021-01-28 10:45:57 -08:00
Thomas Lacroix
6dfa6d55b5 fix(slack): replace slack GetChannels by GetConversations (#1350) 2021-01-28 10:37:01 -08:00
dependabot[bot]
2eb73e6bfb Bump github.com/hashicorp/go-version from 1.2.0 to 1.2.1 (#1365)
Bumps [github.com/hashicorp/go-version](https://github.com/hashicorp/go-version) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/hashicorp/go-version/releases)
- [Commits](https://github.com/hashicorp/go-version/compare/v1.2.0...v1.2.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-28 09:02:27 -08:00
dependabot[bot]
664f83f6bb Bump github.com/Laisky/graphql from 1.0.4 to 1.0.5 (#1368)
Bumps [github.com/Laisky/graphql](https://github.com/Laisky/graphql) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/Laisky/graphql/releases)
- [Commits](https://github.com/Laisky/graphql/compare/v1.0.4...v1.0.5)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-28 09:02:06 -08:00
dependabot[bot]
a95a194e6c Bump github.com/hashicorp/go-getter from 1.5.1 to 1.5.2 (#1344)
Bumps [github.com/hashicorp/go-getter](https://github.com/hashicorp/go-getter) from 1.5.1 to 1.5.2.
- [Release notes](https://github.com/hashicorp/go-getter/releases)
- [Changelog](https://github.com/hashicorp/go-getter/blob/main/.goreleaser.yml)
- [Commits](https://github.com/hashicorp/go-getter/compare/v1.5.1...v1.5.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 15:50:22 -05:00
Gerald Barker
1137a82c60 Add the ability to disable Atlantis locking a repo (#1340)
* Add the ability to disable Atlantis locking a repo

* Fix incorrect logic when creating locking Client

Co-authored-by: kbaldyga <kbaldyga@gmail.com>

* Add tests for noOpLocker to improve coverage

Co-authored-by: Gerald Barker <geraldbarker@mail.com>
Co-authored-by: kbaldyga <kbaldyga@gmail.com>
2021-01-14 10:20:27 -05:00
ollliegits
cf9dd4ea65 docs: Note added on when exactly pre workflow hooks run. (#1346)
Co-authored-by: Oliver <oliver.stache@t-systems.com>
2021-01-14 10:19:54 -05:00
Istvan Tapaszto
68e20b1dc1 Fixing AutoMerge issue with Azure DevOps (#1289)
* Getting Azure DevOps user id on the fly

* mcdafydd/go-azuredevops module version increased

* Additional errorhandling

* Additional errorhandling Part2

* Doc update:  Access permission requirement

* Fixing modules.txt

* Fixing modules.txt

* Modules.txt fixed

* AzureDevops dependencies committed to vendor

* Fixing AzureDevOpsClient tests

* Fixing invalid bitbucket references in docs

* Fixing modules.txt

* Fixing go.mod

Co-authored-by: Tapaszto, Istvan <istvan.tapaszto@msciintegration.onmicrosoft.com>
2021-01-13 09:01:06 -05:00
Rui Chen
6b36adbf35 deps: bump versions for tf 0.12.x and 0.13.x
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-01-07 09:39:53 -05:00
chenrui
c7723c65a4 deps: tf 0.14.4 (#1336)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-01-07 09:37:35 -05:00
Nish Krishnan
1513ee6421 Add support for fetching gh app user. (#30) (#1334)
* Add support for fetching gh app user. (#30)

* Upgrade pegomock.

* go mod vendor.
2021-01-05 15:21:31 -08:00
Nish Krishnan
129b7b2f57 Update link. (#1335) 2021-01-05 14:17:56 -08:00
Matija Buriša
43fce15076 add a valid variable definition file extension to list of exceptions (#1331)
* add a valid variable definition file extension to list of exceptions

* run go fmt

Co-authored-by: Matija Burisa <Matija.Burisa@infobip.com>
2021-01-04 12:08:50 -08:00