forked from trussworks/terraform-aws-ou-scp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from transcom/I-13461-transferservice
add exception for transfer family
- Loading branch information
Showing
11 changed files
with
627 additions
and
36 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,10 @@ | ||
# Lines starting with '#' are comments. | ||
# Each line is a file pattern followed by one or more owners. | ||
|
||
# Order is important. The last matching pattern has the most precedence. | ||
# So if a pull request only matches a later pattern, only those later code | ||
# owners will be requested for a review. | ||
# Add language specific code owners if it becomes relevant | ||
|
||
# All PRs must be approved by a member of infra | ||
* @deandreJones @cameroncaci @josiahzimmerman-caci |
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,74 @@ | ||
name: Automatic Docs Generation, Formatting, Validation, and Pre-commit | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
docs_fmt_validation_pre_commit: | ||
name: docs_fmt_validation_pre_commit | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Render Terraform Docs inside README.md and push changes back to PR branch | ||
env: | ||
GH_TOKEN: ${{ secrets.ROBOT_MYMOVE_TOKEN }} | ||
uses: terraform-docs/[email protected] | ||
with: | ||
working-dir: . | ||
fail-on-diff: true | ||
template: |- | ||
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> | ||
{{ .Content }} | ||
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> | ||
- name: Run Terraform fmt | ||
uses: dflook/terraform-fmt-check@v1 | ||
|
||
- name: Spell check | ||
if: ${{ github.actor != 'robot-mymove' && github.event.issue.user.login != 'dependabot[bot]' }} | ||
uses: rojopolis/[email protected] | ||
|
||
- name: Validate JSON | ||
if: ${{ github.actor != 'robot-mymove' && github.event.issue.user.login != 'dependabot[bot]' }} | ||
uses: limitusus/json-syntax-check@v2 | ||
with: | ||
pattern: "\\.json$" | ||
|
||
- name: Run YAML lint | ||
if: ${{ github.actor != 'robot-mymove' && github.event.issue.user.login != 'dependabot[bot]' }} | ||
uses: karancode/[email protected] | ||
with: | ||
yamllint_config_datapath: yamllint-config.yml | ||
|
||
- name: Run tfsec | ||
if: ${{ github.actor != 'robot-mymove' && github.event.issue.user.login != 'dependabot[bot]' }} | ||
uses: aquasecurity/[email protected] | ||
with: | ||
additional_args: --exclude-downloaded-modules --no-module-downloads | ||
|
||
- name: Set up Python for pre-commit | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.9 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-pip-pre-commit-2.20.0 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }} | ||
|
||
- name: Run pre-commit | ||
env: | ||
SKIP: terraform_docs,terraform_fmt,terraform_tfsec | ||
run: | | ||
pip install pre-commit==2.20.0 | ||
pre-commit run --all-files |
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,39 @@ | ||
name: pre-commit auto-update | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
auto-update: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.ROBOT_MYMOVE_TOKEN }} | ||
- name: install python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
- name: install pre-commit | ||
run: pip install pre-commit | ||
- name: run pre-commit autoupdate | ||
run: pre-commit autoupdate | ||
- name: set up Git | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ROBOT_MYMOVE_TOKEN }} | ||
GITHUB_ACTOR_NAME: "robot-mymove" | ||
GITHUB_ACTOR_EMAIL: "[email protected]" | ||
run: | | ||
git config --global user.name "${GITHUB_ACTOR_NAME}" | ||
git config --global user.email "${GITHUB_ACTOR_EMAIL}" | ||
- name: create pull request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.ROBOT_MYMOVE_TOKEN }} | ||
branch: update/pre-commit-autoupdate | ||
title: update pre-commit hooks | ||
commit-message: update pre-commit hooks | ||
body: update pre-commit hooks | ||
labels: dependencies | ||
team-reviewers: Truss-InfraSec |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
matrix: | ||
- name: Markdown | ||
aspell: | ||
lang: en | ||
dictionary: | ||
wordlists: | ||
- .spelling | ||
encoding: utf-8 | ||
sources: | ||
- '**/*.md' | ||
default_encoding: utf-8 |
Oops, something went wrong.