Skip to content

Commit 19393eb

Browse files
authored
Merge pull request #929 from cisagov/lineage/skeleton
⚠️ CONFLICT! Lineage pull request for: skeleton
2 parents 10dbb85 + 6975f12 commit 19393eb

File tree

10 files changed

+46
-39
lines changed

10 files changed

+46
-39
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on: # yamllint disable-line rule:truthy
55
merge_group:
66
types:
77
- checks_requested
8+
# We use the default activity types for the pull_request event as specified here:
9+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request
810
pull_request:
911
push:
1012
repository_dispatch:
@@ -118,18 +120,20 @@ jobs:
118120
name: Lookup Go cache directory
119121
run: |
120122
echo "dir=$(go env GOCACHE)" >> $GITHUB_OUTPUT
121-
- uses: actions/cache@v4
123+
- uses: actions/cache@v5
122124
env:
123-
BASE_CACHE_KEY: ${{ github.job }}-${{ runner.os }}-\
124-
py${{ steps.setup-python.outputs.python-version }}-\
125-
go${{ steps.setup-go.outputs.go-version }}-\
126-
packer${{ steps.setup-env.outputs.packer-version }}-\
127-
tf${{ steps.setup-env.outputs.terraform-version }}-
125+
BASE_CACHE_KEY: >-
126+
${{ github.job }}-${{ runner.os
127+
}}-py${{ steps.setup-python.outputs.python-version
128+
}}-go${{ steps.setup-go.outputs.go-version
129+
}}-packer${{ steps.setup-env.outputs.packer-version
130+
}}-tf${{ steps.setup-env.outputs.terraform-version }}-
128131
with:
129-
key: ${{ env.BASE_CACHE_KEY }}\
130-
${{ hashFiles('**/requirements-test.txt') }}-\
131-
${{ hashFiles('**/requirements.txt') }}-\
132-
${{ hashFiles('**/.pre-commit-config.yaml') }}
132+
key: >-
133+
${{ env.BASE_CACHE_KEY }}${{
134+
hashFiles('**/requirements-test.txt') }}-${{
135+
hashFiles('**/requirements.txt') }}-${{
136+
hashFiles('**/.pre-commit-config.yaml') }}
133137
# Note that the .terraform directory IS NOT included in the
134138
# cache because if we were caching, then we would need to use
135139
# the `-upgrade=true` option. This option blindly pulls down the
@@ -187,7 +191,7 @@ jobs:
187191
-o $(go env GOPATH)/bin/terraform-docs
188192
- name: Install dependencies
189193
run: |
190-
python -m pip install --upgrade pip setuptools wheel
194+
python -m pip install --upgrade pip setuptools
191195
pip install --upgrade --requirement requirements-test.txt
192196
- name: Install Ansible roles
193197
run: |

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
merge_group:
1313
types:
1414
- checks_requested
15+
# We use the default activity types for the pull_request event as specified here:
16+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request
1517
pull_request:
1618
# The branches here must be a subset of the ones in the push key
1719
branches:

.github/workflows/dependency-review.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on: # yamllint disable-line rule:truthy
55
merge_group:
66
types:
77
- checks_requested
8+
# We use the default activity types for the pull_request event as specified here:
9+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request
810
pull_request:
911

1012
# Set a default shell for any run steps. The `-Eueo pipefail` sets errtrace,

.github/workflows/label-prs.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
name: Label pull requests
33

44
on: # yamllint disable-line rule:truthy
5+
# We use the default activity types for the pull_request event as specified here:
6+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request
57
pull_request:
6-
types:
7-
- edited
8-
- opened
9-
- synchronize
108

119
# Set a default shell for any run steps. The `-Eueo pipefail` sets errtrace,
1210
# nounset, errexit, and pipefail. The `-x` will print all commands as they are

.github/workflows/lock-terraform-providers.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
name: Lock Terraform providers
33

44
on: # yamllint disable-line rule:truthy
5+
# We use the default activity types for the pull_request event as specified here:
6+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request
57
pull_request:
68
paths:
79
- terraform/.terraform.lock.hcl

.pre-commit-config.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,32 +45,32 @@ repos:
4545

4646
# Text file hooks
4747
- repo: https://github.com/igorshubovych/markdownlint-cli
48-
rev: v0.45.0
48+
rev: v0.47.0
4949
hooks:
5050
- id: markdownlint
5151
args:
5252
- --config=.mdl_config.yaml
5353
- repo: https://github.com/rbubley/mirrors-prettier
54-
rev: v3.6.2
54+
rev: v3.8.1
5555
hooks:
5656
- id: prettier
5757
- repo: https://github.com/adrienverge/yamllint
58-
rev: v1.37.1
58+
rev: v1.38.0
5959
hooks:
6060
- id: yamllint
6161
args:
6262
- --strict
6363

6464
# GitHub Actions hooks
6565
- repo: https://github.com/python-jsonschema/check-jsonschema
66-
rev: 0.35.0
66+
rev: 0.36.2
6767
hooks:
6868
- id: check-github-actions
6969
- id: check-github-workflows
7070

7171
# pre-commit hooks
7272
- repo: https://github.com/pre-commit/pre-commit
73-
rev: v4.4.0
73+
rev: v4.5.1
7474
hooks:
7575
- id: validate_manifest
7676

@@ -129,15 +129,15 @@ repos:
129129

130130
# Python hooks
131131
- repo: https://github.com/PyCQA/bandit
132-
rev: 1.9.1
132+
rev: 1.9.3
133133
hooks:
134134
- id: bandit
135135
additional_dependencies:
136136
- importlib-metadata<5
137137
args:
138138
- --config=.bandit.yml
139139
- repo: https://github.com/psf/black-pre-commit-mirror
140-
rev: 25.11.0
140+
rev: 26.1.0
141141
hooks:
142142
- id: black
143143
- repo: https://github.com/PyCQA/flake8
@@ -147,18 +147,18 @@ repos:
147147
additional_dependencies:
148148
- flake8-docstrings==1.7.0
149149
- repo: https://github.com/PyCQA/isort
150-
rev: 7.0.0
150+
rev: 8.0.0
151151
hooks:
152152
- id: isort
153153
- repo: https://github.com/pre-commit/mirrors-mypy
154-
rev: v1.18.2
154+
rev: v1.19.1
155155
hooks:
156156
- id: mypy
157157
additional_dependencies:
158158
- types-requests
159159
- types-PyYAML
160160
- repo: https://github.com/pypa/pip-audit
161-
rev: v2.9.0
161+
rev: v2.10.0
162162
hooks:
163163
- id: pip-audit
164164
args:
@@ -183,7 +183,7 @@ repos:
183183
- --requirement
184184
- requirements.txt
185185
- repo: https://github.com/asottile/pyupgrade
186-
rev: v3.21.1
186+
rev: v3.21.2
187187
hooks:
188188
- id: pyupgrade
189189
args:
@@ -195,7 +195,7 @@ repos:
195195

196196
# Ansible hooks
197197
- repo: https://github.com/ansible/ansible-lint
198-
rev: v25.11.1
198+
rev: v26.1.1
199199
hooks:
200200
- id: ansible-lint
201201
additional_dependencies:
@@ -221,7 +221,7 @@ repos:
221221

222222
# Terraform hooks
223223
- repo: https://github.com/antonbabenko/pre-commit-terraform
224-
rev: v1.103.0
224+
rev: v1.105.0
225225
hooks:
226226
- id: terraform_fmt
227227
- id: terraform_validate

packer/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ No requirements.
6666
## Providers ##
6767

6868
| Name | Version |
69-
|------|---------|
69+
| ---- | ------- |
7070
| amazon-ami | n/a |
7171
| amazon-parameterstore | n/a |
7272

@@ -77,7 +77,7 @@ No modules.
7777
## Resources ##
7878

7979
| Name | Type |
80-
|------|------|
80+
| ---- | ---- |
8181
| [amazon-ami_amazon-ami.debian_bookworm_arm64](https://registry.terraform.io/providers/hashicorp/amazon-ami/latest/docs/data-sources/amazon-ami) | data source |
8282
| [amazon-ami_amazon-ami.debian_bookworm_x86_64](https://registry.terraform.io/providers/hashicorp/amazon-ami/latest/docs/data-sources/amazon-ami) | data source |
8383
| [amazon-ami_amazon-ami.debian_buster_x86_64](https://registry.terraform.io/providers/hashicorp/amazon-ami/latest/docs/data-sources/amazon-ami) | data source |
@@ -89,7 +89,7 @@ No modules.
8989
## Inputs ##
9090

9191
| Name | Description | Type | Default | Required |
92-
|------|-------------|------|---------|:--------:|
92+
| ---- | ----------- | ---- | ------- | :------: |
9393
| ami\_prefix | The prefix to use for the names of AMIs created. | `string` | `"cyhy"` | no |
9494
| ami\_regions | The list of AWS regions to copy the AMI to once it has been created. Example: ["us-east-1"] | `list(string)` | ```[ "us-east-1", "us-west-1", "us-west-2" ]``` | no |
9595
| build\_region | The region in which to retrieve the base AMI from and build the new AMI. | `string` | `"us-east-2"` | no |

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ ansible>=10,<11
1414
# .pre-commit-config.yaml in cisagov/skeleton-generic.
1515
ansible-core>=2.17.7
1616
boto3
17-
setuptools
18-
wheel
17+
setuptools>=70.1

setup-env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ fi
271271
pyenv local "${env_name}"
272272

273273
# Upgrade pip and friends
274-
python3 -m pip install --upgrade pip setuptools wheel
274+
python3 -m pip install --upgrade pip setuptools
275275

276276
# Find a requirements file (if possible) and install
277277
for req_file in "requirements-dev.txt" "requirements-test.txt" "requirements.txt"; do

terraform/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ terraform apply -var-file=<your_workspace>.tfvars
145145
## Requirements ##
146146

147147
| Name | Version |
148-
|------|---------|
148+
| ---- | ------- |
149149
| terraform | ~> 1.1 |
150150
| aws | ~> 6.7 |
151151
| cloudinit | ~> 2.0 |
@@ -154,7 +154,7 @@ terraform apply -var-file=<your_workspace>.tfvars
154154
## Providers ##
155155

156156
| Name | Version |
157-
|------|---------|
157+
| ---- | ------- |
158158
| aws | ~> 6.7 |
159159
| aws.public\_dns | ~> 6.7 |
160160
| cloudinit | ~> 2.0 |
@@ -164,7 +164,7 @@ terraform apply -var-file=<your_workspace>.tfvars
164164
## Modules ##
165165

166166
| Name | Source | Version |
167-
|------|--------|---------|
167+
| ---- | ------ | ------- |
168168
| bod\_bastion\_ansible\_provisioner | github.com/cloudposse/terraform-null-ansible | n/a |
169169
| bod\_docker\_ansible\_provisioner | github.com/cloudposse/terraform-null-ansible | n/a |
170170
| cyhy\_bastion\_ansible\_provisioner | github.com/cloudposse/terraform-null-ansible | n/a |
@@ -179,7 +179,7 @@ terraform apply -var-file=<your_workspace>.tfvars
179179
## Resources ##
180180

181181
| Name | Type |
182-
|------|------|
182+
| ---- | ---- |
183183
| [aws_cloudwatch_log_group.bod_flow_log_group](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource |
184184
| [aws_cloudwatch_log_group.cyhy_flow_log_group](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource |
185185
| [aws_cloudwatch_log_group.fdi_lambda_logs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource |
@@ -633,7 +633,7 @@ terraform apply -var-file=<your_workspace>.tfvars
633633
## Inputs ##
634634

635635
| Name | Description | Type | Default | Required |
636-
|------|-------------|------|---------|:--------:|
636+
| ---- | ----------- | ---- | ------- | :------: |
637637
| ami\_prefixes | An object whose keys are the types of Packer images (defined in the `packer/` directory in the root of the repository) and whose values are the prefix to use for the corresponding AMI. The default for all images is "cyhy". | ```object({ bastion = string, dashboard = string, docker = string, mongo = string, nessus = string, nmap = string, reporter = string, })``` | ```{ "bastion": "cyhy", "dashboard": "cyhy", "docker": "cyhy", "mongo": "cyhy", "nessus": "cyhy", "nmap": "cyhy", "reporter": "cyhy" }``` | no |
638638
| aws\_availability\_zone | The AWS availability zone to deploy into (e.g. a, b, c, etc.). | `string` | `"a"` | no |
639639
| aws\_region | The AWS region to deploy into (e.g. us-east-1). | `string` | `"us-east-1"` | no |

0 commit comments

Comments
 (0)