Skip to content

Commit ed71fc6

Browse files
authored
Merge pull request #121 from cisagov/lineage/skeleton
⚠️ CONFLICT! Lineage pull request for: skeleton
2 parents 3a692c9 + 1963120 commit ed71fc6

File tree

5 files changed

+121
-25
lines changed

5 files changed

+121
-25
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ updates:
1212
schedule:
1313
interval: "weekly"
1414
ignore:
15+
# Managed by cisagov/skeleton-generic
1516
- dependency-name: actions/cache
1617
- dependency-name: actions/checkout
18+
- dependency-name: actions/setup-go
1719
- dependency-name: actions/setup-python
20+
- dependency-name: hashicorp/setup-terraform
21+
- dependency-name: mxschmitt/action-tmate
1822

1923
- package-ecosystem: "pip"
2024
directory: "/"

.github/labels.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
# Rather than breaking up descriptions into multiline strings we disable that
3+
# specific rule in yamllint for this file.
4+
# yamllint disable rule:line-length
5+
- color: "eb6420"
6+
description: This issue or pull request is awaiting the outcome of another issue or pull request
7+
name: blocked
8+
- color: "000000"
9+
description: This issue or pull request involves changes to existing functionality
10+
name: breaking change
11+
- color: "d73a4a"
12+
description: This issue or pull request addresses broken functionality
13+
name: bug
14+
- color: "07648d"
15+
description: This issue will be advertised on code.gov's Open Tasks page (https://code.gov/open-tasks)
16+
name: code.gov
17+
- color: "0366d6"
18+
description: Pull requests that update a dependency file
19+
name: dependencies
20+
- color: "5319e7"
21+
description: This issue or pull request improves or adds to documentation
22+
name: documentation
23+
- color: "cfd3d7"
24+
description: This issue or pull request already exists or is covered in another issue or pull request
25+
name: duplicate
26+
- color: "b005bc"
27+
description: A high-level objective issue encompassing multiple issues instead of a specific unit of work
28+
name: epic
29+
- color: "000000"
30+
description: Pull requests that update GitHub Actions code
31+
name: github-actions
32+
- color: "0e8a16"
33+
description: This issue or pull request is well-defined and good for newcomers
34+
name: good first issue
35+
- color: "ff7518"
36+
description: Pull request that should count toward Hacktoberfest participation
37+
name: hacktoberfest-accepted
38+
- color: "a2eeef"
39+
description: This issue or pull request will add or improve functionality, maintainability, or ease of use
40+
name: improvement
41+
- color: "fef2c0"
42+
description: This issue or pull request is not applicable, incorrect, or obsolete
43+
name: invalid
44+
- color: "ce099a"
45+
description: This pull request is ready to merge during the next Lineage Kraken release
46+
name: kraken 🐙
47+
- color: "a4fc5d"
48+
description: This issue or pull request requires further information
49+
name: need info
50+
- color: "fcdb45"
51+
description: This pull request is awaiting an action or decision to move forward
52+
name: on hold
53+
- color: "ef476c"
54+
description: This issue is a request for information or needs discussion
55+
name: question
56+
- color: "00008b"
57+
description: This issue or pull request adds or otherwise modifies test code
58+
name: test
59+
- color: "1d76db"
60+
description: This issue or pull request pulls in upstream updates
61+
name: upstream update
62+
- color: "d4c5f9"
63+
description: This issue or pull request increments the version number
64+
name: version bump
65+
- color: "ffffff"
66+
description: This issue will not be incorporated
67+
name: wontfix

.github/workflows/build.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,24 @@ jobs:
2121
uses: cisagov/setup-env-github-action@develop
2222
- uses: actions/checkout@v3
2323
- id: setup-python
24-
uses: actions/setup-python@v3
24+
uses: actions/setup-python@v4
2525
with:
2626
python-version: "3.10"
2727
# We need the Go version and Go cache location for the actions/cache step,
2828
# so the Go installation must happen before that.
29-
- uses: actions/setup-go@v2
29+
- id: setup-go
30+
uses: actions/setup-go@v3
3031
with:
31-
go-version: "1.16"
32-
- name: Store installed Go version
33-
id: go-version
34-
run: |
35-
echo "::set-output name=version::"\
36-
"$(go version | sed 's/^go version go\([0-9.]\+\) .*/\1/')"
32+
go-version: "1.19"
3733
- name: Lookup Go cache directory
3834
id: go-cache
3935
run: |
40-
echo "::set-output name=dir::$(go env GOCACHE)"
36+
echo "dir=$(go env GOCACHE)" >> $GITHUB_OUTPUT
4137
- uses: actions/cache@v3
4238
env:
4339
BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\
4440
py${{ steps.setup-python.outputs.python-version }}-\
45-
go${{ steps.go-version.outputs.version }}-\
41+
go${{ steps.setup-go.outputs.go-version }}-\
4642
packer${{ steps.setup-env.outputs.packer-version }}-\
4743
tf${{ steps.setup-env.outputs.terraform-version }}-"
4844
with:
@@ -78,7 +74,7 @@ jobs:
7874
${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}"
7975
sudo mv /usr/local/bin/packer /usr/local/bin/packer-default
8076
sudo ln -s /opt/packer/packer /usr/local/bin/packer
81-
- uses: hashicorp/setup-terraform@v1
77+
- uses: hashicorp/setup-terraform@v2
8278
with:
8379
terraform_version: ${{ steps.setup-env.outputs.terraform-version }}
8480
- name: Install shfmt
@@ -112,7 +108,7 @@ jobs:
112108
steps:
113109
- uses: actions/checkout@v3
114110
- id: setup-python
115-
uses: actions/setup-python@v3
111+
uses: actions/setup-python@v4
116112
with:
117113
python-version: "3.10"
118114
- uses: actions/cache@v3

.github/workflows/sync-labels.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: sync-labels
3+
4+
on:
5+
push:
6+
paths:
7+
- '.github/labels.yml'
8+
- '.github/workflows/sync-labels.yml'
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
labeler:
15+
permissions:
16+
# actions/checkout needs this to fetch code
17+
contents: read
18+
# crazy-max/ghaction-github-labeler needs this to manage repository labels
19+
issues: write
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Sync repository labels
24+
if: success()
25+
uses: crazy-max/ghaction-github-labeler@v4
26+
with:
27+
# This is a hideous ternary equivalent so we only do a dry run unless
28+
# this workflow is triggered by the develop branch.
29+
dry-run: ${{ github.ref_name == 'develop' && 'false' || 'true' }}

.pre-commit-config.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ default_language_version:
55

66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.1.0
8+
rev: v4.3.0
99
hooks:
1010
- id: check-case-conflict
1111
- id: check-executables-have-shebangs
@@ -31,32 +31,32 @@ repos:
3131

3232
# Text file hooks
3333
- repo: https://github.com/igorshubovych/markdownlint-cli
34-
rev: v0.31.1
34+
rev: v0.32.2
3535
hooks:
3636
- id: markdownlint
3737
args:
3838
- --config=.mdl_config.yaml
3939
- repo: https://github.com/pre-commit/mirrors-prettier
40-
rev: v2.6.1
40+
rev: v3.0.0-alpha.4
4141
hooks:
4242
- id: prettier
4343
- repo: https://github.com/adrienverge/yamllint
44-
rev: v1.26.3
44+
rev: v1.28.0
4545
hooks:
4646
- id: yamllint
4747
args:
4848
- --strict
4949

5050
# GitHub Actions hooks
5151
- repo: https://github.com/python-jsonschema/check-jsonschema
52-
rev: 0.14.2
52+
rev: 0.18.4
5353
hooks:
5454
- id: check-github-actions
5555
- id: check-github-workflows
5656

5757
# pre-commit hooks
5858
- repo: https://github.com/pre-commit/pre-commit
59-
rev: v2.17.0
59+
rev: v2.20.0
6060
hooks:
6161
- id: validate_manifest
6262

@@ -90,11 +90,11 @@ repos:
9090
args:
9191
- --config=.bandit.yml
9292
- repo: https://github.com/psf/black
93-
rev: 22.3.0
93+
rev: 22.10.0
9494
hooks:
9595
- id: black
96-
- repo: https://gitlab.com/pycqa/flake8
97-
rev: 3.9.2
96+
- repo: https://github.com/PyCQA/flake8
97+
rev: 5.0.4
9898
hooks:
9999
- id: flake8
100100
additional_dependencies:
@@ -104,11 +104,11 @@ repos:
104104
hooks:
105105
- id: isort
106106
- repo: https://github.com/pre-commit/mirrors-mypy
107-
rev: v0.942
107+
rev: v0.990
108108
hooks:
109109
- id: mypy
110110
- repo: https://github.com/asottile/pyupgrade
111-
rev: v2.31.1
111+
rev: v3.2.0
112112
hooks:
113113
- id: pyupgrade
114114

@@ -121,14 +121,14 @@ repos:
121121

122122
# Terraform hooks
123123
- repo: https://github.com/antonbabenko/pre-commit-terraform
124-
rev: v1.64.0
124+
rev: v1.76.0
125125
hooks:
126126
- id: terraform_fmt
127127
- id: terraform_validate
128128

129129
# Docker hooks
130130
- repo: https://github.com/IamTheFij/docker-pre-commit
131-
rev: v2.1.0
131+
rev: v2.1.1
132132
hooks:
133133
- id: docker-compose-check
134134

0 commit comments

Comments
 (0)