Skip to content

Commit 737aaff

Browse files
committed
Merge github.com:cisagov/skeleton-generic into lineage/skeleton
2 parents ed103e3 + c0eed09 commit 737aaff

File tree

5 files changed

+76
-27
lines changed

5 files changed

+76
-27
lines changed

.bandit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This config is applied to bandit when scanning the "tests" tree
55

66
# Tests are first included by `tests`, and then excluded by `skips`.
7-
# If `tests` is empty, all tests are are considered included.
7+
# If `tests` is empty, all tests are considered included.
88

99
tests:
1010
# - B101

.github/dependabot.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,34 @@
55
# these updates when the pull request(s) in the appropriate skeleton are merged
66
# and Lineage processes these changes.
77

8-
version: 2
98
updates:
10-
- package-ecosystem: "github-actions"
11-
directory: "/"
12-
schedule:
13-
interval: "weekly"
9+
- directory: /
1410
ignore:
1511
# Managed by cisagov/skeleton-generic
1612
- dependency-name: actions/cache
1713
- dependency-name: actions/checkout
1814
- dependency-name: actions/setup-go
1915
- dependency-name: actions/setup-python
16+
# - dependency-name: crazy-max/ghaction-dump-context
17+
# - dependency-name: crazy-max/ghaction-github-labeler
18+
# - dependency-name: crazy-max/ghaction-github-status
2019
- dependency-name: hashicorp/setup-terraform
2120
- dependency-name: mxschmitt/action-tmate
21+
# - dependency-name: step-security/harden-runner
2222
# # Managed by cisagov/skeleton-python-library
2323
# - dependency-name: actions/download-artifact
2424
# - dependency-name: actions/upload-artifact
25+
package-ecosystem: github-actions
26+
schedule:
27+
interval: weekly
2528

26-
- package-ecosystem: "pip"
27-
directory: "/"
29+
- directory: /
30+
package-ecosystem: pip
2831
schedule:
29-
interval: "weekly"
32+
interval: weekly
3033

31-
- package-ecosystem: "terraform"
32-
directory: "/"
34+
- directory: /
35+
package-ecosystem: terraform
3336
schedule:
34-
interval: "weekly"
37+
interval: weekly
38+
version: 2

.github/workflows/build.yml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,36 @@ env:
1414
RUN_TMATE: ${{ secrets.RUN_TMATE }}
1515

1616
jobs:
17+
diagnostics:
18+
name: Run diagnostics
19+
runs-on: ubuntu-latest
20+
steps:
21+
# Note that a duplicate of this step must be added at the top of
22+
# each job.
23+
- id: harden-runner
24+
name: Harden the runner
25+
uses: step-security/harden-runner@v2
26+
with:
27+
egress-policy: audit
28+
- id: github-status
29+
name: Check GitHub status
30+
uses: crazy-max/ghaction-github-status@v3
31+
- id: dump-context
32+
name: Dump context
33+
uses: crazy-max/ghaction-dump-context@v2
1734
lint:
35+
needs:
36+
- diagnostics
1837
runs-on: ubuntu-latest
1938
steps:
39+
- id: harden-runner
40+
name: Harden the runner
41+
uses: step-security/harden-runner@v2
42+
with:
43+
egress-policy: audit
2044
- id: setup-env
2145
uses: cisagov/setup-env-github-action@develop
22-
- uses: actions/checkout@v3
46+
- uses: actions/checkout@v4
2347
- id: setup-python
2448
uses: actions/setup-python@v4
2549
with:
@@ -84,11 +108,26 @@ jobs:
84108
- uses: hashicorp/setup-terraform@v2
85109
with:
86110
terraform_version: ${{ steps.setup-env.outputs.terraform-version }}
111+
- name: Install go-critic
112+
env:
113+
PACKAGE_URL: github.com/go-critic/go-critic/cmd/gocritic
114+
PACKAGE_VERSION: ${{ steps.setup-env.outputs.go-critic-version }}
115+
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
116+
- name: Install gosec
117+
env:
118+
PACKAGE_URL: github.com/securego/gosec/v2/cmd/gosec
119+
PACKAGE_VERSION: ${{ steps.setup-env.outputs.gosec-version }}
120+
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
87121
- name: Install shfmt
88122
env:
89123
PACKAGE_URL: mvdan.cc/sh/v3/cmd/shfmt
90124
PACKAGE_VERSION: ${{ steps.setup-env.outputs.shfmt-version }}
91125
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
126+
- name: Install staticcheck
127+
env:
128+
PACKAGE_URL: honnef.co/go/tools/cmd/staticcheck
129+
PACKAGE_VERSION: ${{ steps.setup-env.outputs.staticcheck-version }}
130+
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
92131
- name: Install Terraform-docs
93132
env:
94133
PACKAGE_URL: github.com/terraform-docs/terraform-docs

.github/workflows/sync-labels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
issues: write
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
- name: Sync repository labels
2424
if: success()
25-
uses: crazy-max/ghaction-github-labeler@v4
25+
uses: crazy-max/ghaction-github-labeler@v5
2626
with:
2727
# This is a hideous ternary equivalent so we only do a dry run unless
2828
# this workflow is triggered by the develop branch.

.pre-commit-config.yaml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ repos:
3131

3232
# Text file hooks
3333
- repo: https://github.com/igorshubovych/markdownlint-cli
34-
rev: v0.34.0
34+
rev: v0.36.0
3535
hooks:
3636
- id: markdownlint
3737
args:
3838
- --config=.mdl_config.yaml
3939
- repo: https://github.com/pre-commit/mirrors-prettier
40-
rev: v3.0.0-alpha.9-for-vscode
40+
rev: v3.0.3
4141
hooks:
4242
- id: prettier
4343
- repo: https://github.com/adrienverge/yamllint
@@ -49,14 +49,14 @@ repos:
4949

5050
# GitHub Actions hooks
5151
- repo: https://github.com/python-jsonschema/check-jsonschema
52-
rev: 0.23.1
52+
rev: 0.26.3
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: v3.3.2
59+
rev: v3.4.0
6060
hooks:
6161
- id: validate_manifest
6262

@@ -79,6 +79,12 @@ repos:
7979
# GoSec
8080
- id: go-sec-repo-mod
8181

82+
# Nix hooks
83+
- repo: https://github.com/nix-community/nixpkgs-fmt
84+
rev: v1.3.0
85+
hooks:
86+
- id: nixpkgs-fmt
87+
8288
# Shell script hooks
8389
- repo: https://github.com/cisagov/pre-commit-shfmt
8490
rev: v0.0.2
@@ -116,12 +122,12 @@ repos:
116122
- id: bandit
117123
name: bandit (everything else)
118124
exclude: tests
119-
- repo: https://github.com/psf/black
120-
rev: 23.3.0
125+
- repo: https://github.com/psf/black-pre-commit-mirror
126+
rev: 23.9.1
121127
hooks:
122128
- id: black
123129
- repo: https://github.com/PyCQA/flake8
124-
rev: 6.0.0
130+
rev: 6.1.0
125131
hooks:
126132
- id: flake8
127133
additional_dependencies:
@@ -131,26 +137,26 @@ repos:
131137
hooks:
132138
- id: isort
133139
- repo: https://github.com/pre-commit/mirrors-mypy
134-
rev: v1.3.0
140+
rev: v1.5.1
135141
hooks:
136142
- id: mypy
137143
additional_dependencies:
138144
- types-setuptools
139145
- repo: https://github.com/asottile/pyupgrade
140-
rev: v3.4.0
146+
rev: v3.10.1
141147
hooks:
142148
- id: pyupgrade
143149

144150
# Ansible hooks
145-
- repo: https://github.com/ansible-community/ansible-lint
146-
rev: v6.17.0
151+
- repo: https://github.com/ansible/ansible-lint
152+
rev: v6.19.0
147153
hooks:
148154
- id: ansible-lint
149155
# files: molecule/default/playbook.yml
150156

151157
# Terraform hooks
152158
- repo: https://github.com/antonbabenko/pre-commit-terraform
153-
rev: v1.80.0
159+
rev: v1.83.2
154160
hooks:
155161
- id: terraform_fmt
156162
- id: terraform_validate

0 commit comments

Comments
 (0)