-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into janeapp-main
- Loading branch information
Showing
19 changed files
with
199 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @lacework/eng-product-platform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Nightly Build | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 10 * * *' # Run every day at 10AM UTC | ||
|
||
jobs: | ||
call-nightly-workflow: | ||
uses: lacework/oss-actions/.github/workflows/tf-nightly.yml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: Prepare Release | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
call-nightly-workflow: | ||
uses: lacework/oss-actions/.github/workflows/tf-prepare-release.yml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
call-nightly-workflow: | ||
uses: lacework/oss-actions/.github/workflows/tf-release.yml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Test that terraform docs has been run | ||
on: push | ||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- name: Install terraform-docs | ||
run: curl -L https://github.com/terraform-docs/terraform-docs/releases/download/v0.16.0/terraform-docs-v0.16.0-linux-amd64.tar.gz | (cd /usr/local/bin; tar zxvf -; chmod +x /usr/local/bin/terraform-docs) | ||
- name: store hash of orig README.md | ||
id: old_hash | ||
run: echo "README_HASH=$(md5sum README.md)" >> $GITHUB_OUTPUT | ||
- name: Update README.md using terraform-docs make target | ||
run: make terraform-docs | ||
- name: store hash of new README.md | ||
id: new_hash | ||
run: echo "README_HASH=$(md5sum README.md)" >> $GITHUB_OUTPUT | ||
- name: echo hashes | ||
run: | | ||
echo ${{ steps.old_hash.outputs.README_HASH }} | ||
echo ${{ steps.new_hash.outputs.README_HASH }} | ||
- name: test to see of hashs are the same | ||
if: ${{ steps.old_hash.outputs.README_HASH != steps.new_hash.outputs.README_HASH }} | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
core.setFailed('Please run "make terraform-docs" and try again') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Test Compatibility On Comment | ||
|
||
on: | ||
workflow_dispatch: | ||
issue_comment: | ||
types: [created, edited] | ||
|
||
jobs: | ||
check-commenting-user: | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, 'make it so') }} | ||
steps: | ||
- uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const creator = context.payload.sender.login | ||
const result = await github.rest.teams.getMembershipForUserInOrg({ | ||
org: context.repo.owner, | ||
team_slug: 'growth-team', | ||
username: creator | ||
}) | ||
if (result.state != "active" ) { | ||
core.setFailed('Commenter is not a member of the growth team.') | ||
} | ||
call-test-compat: | ||
needs: check-commenting-user | ||
uses: lacework/oss-actions/.github/workflows/tf-test-compatibility.yml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Test Compatibility | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
call-test-compat: | ||
uses: lacework/oss-actions/.github/workflows/tf-test-compatibility.yml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Verify Release | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
call-nightly-workflow: | ||
uses: lacework/oss-actions/.github/workflows/tf-verify.yml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
# Release Notes | ||
Another day, another release. These are the release notes for the version `v2.8.0`. | ||
Another day, another release. These are the release notes for the version `v2.9.1`. | ||
|
||
## Features | ||
* feat: enforce External ID v2 format via iam-role module (#144) (djmctavish)([6d4a310](https://github.com/lacework/terraform-aws-cloudtrail/commit/6d4a31028df4d7dc73fdccf8c4185b27452f5237)) | ||
## Other Changes | ||
* ci: use a session token for the ci_tests (Peter Moody)([762e155](https://github.com/lacework/terraform-aws-cloudtrail/commit/762e1555df47d72e5b815e16df55127e1029d42b)) | ||
* ci: version bump to v2.7.7-dev (Lacework)([0eb80a3](https://github.com/lacework/terraform-aws-cloudtrail/commit/0eb80a3221a0b5bb2deb40613bf8b1b490e6ce89)) | ||
* chore: set local var module name (#155) (Darren)([fc944bd](https://github.com/lacework/terraform-aws-cloudtrail/commit/fc944bd87c5c49166bd319fa6888d08a2157bb08)) | ||
* ci: version bump to v2.9.1-dev (Lacework)([bcd0ae8](https://github.com/lacework/terraform-aws-cloudtrail/commit/bcd0ae868b9f334d228f053a058d62ff4c9fed7f)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.8.1-dev | ||
2.9.2-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# | ||
# Name:: release_helpers.sh | ||
# Description:: A set of helper funtions to be used by our release.sh script | ||
# Description:: A set of helper functions to be used by our release.sh script | ||
# Author:: Salim Afiune Maya (<[email protected]>) | ||
# | ||
|
||
|
@@ -137,6 +137,7 @@ prepare_release() { | |
prerequisites | ||
remove_tag_version | ||
check_for_minor_version_bump | ||
generate_readme | ||
generate_release_notes | ||
update_changelog | ||
push_release | ||
|
@@ -192,6 +193,10 @@ generate_release_notes() { | |
echo "$(cat CHANGES.md)" >> RELEASE_NOTES.md | ||
} | ||
|
||
generate_readme() { | ||
make terraform-docs | ||
} | ||
|
||
load_list_of_changes() { | ||
latest_version=$(find_latest_version) | ||
local _list_of_changes=$(git log --no-merges --pretty="* %s (%an)([%h](https://github.com/${org_name}/${project_name}/commit/%H))" ${latest_version}..${main_branch}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,3 @@ else | |
echo "## please install terraform-docs or docker" | ||
exit 1 | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ terraform { | |
} | ||
lacework = { | ||
source = "lacework/lacework" | ||
version = "~> 1.0" | ||
version = ">= 1.18" | ||
} | ||
} | ||
} |