Skip to content

Commit c370b2f

Browse files
authored
Merge pull request #94 from cisagov/lineage/skeleton
⚠️ CONFLICT! Lineage pull request for: skeleton
2 parents 922e6ce + 1d66630 commit c370b2f

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
@@ -3,7 +3,7 @@
33
# https://bandit.readthedocs.io/en/latest/config.html
44

55
# Tests are first included by `tests`, and then excluded by `skips`.
6-
# If `tests` is empty, all tests are are considered included.
6+
# If `tests` is empty, all tests are considered included.
77

88
tests:
99
# - B101

.github/dependabot.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,31 @@
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
22+
package-ecosystem: github-actions
23+
schedule:
24+
interval: weekly
2225

23-
- package-ecosystem: "pip"
24-
directory: "/"
26+
- directory: /
27+
package-ecosystem: pip
2528
schedule:
26-
interval: "weekly"
29+
interval: weekly
2730

28-
- package-ecosystem: "terraform"
29-
directory: "/"
31+
- directory: /
32+
package-ecosystem: terraform
3033
schedule:
31-
interval: "weekly"
34+
interval: weekly
35+
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:
@@ -80,11 +104,26 @@ jobs:
80104
- uses: hashicorp/setup-terraform@v2
81105
with:
82106
terraform_version: ${{ steps.setup-env.outputs.terraform-version }}
107+
- name: Install go-critic
108+
env:
109+
PACKAGE_URL: github.com/go-critic/go-critic/cmd/gocritic
110+
PACKAGE_VERSION: ${{ steps.setup-env.outputs.go-critic-version }}
111+
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
112+
- name: Install gosec
113+
env:
114+
PACKAGE_URL: github.com/securego/gosec/v2/cmd/gosec
115+
PACKAGE_VERSION: ${{ steps.setup-env.outputs.gosec-version }}
116+
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
83117
- name: Install shfmt
84118
env:
85119
PACKAGE_URL: mvdan.cc/sh/v3/cmd/shfmt
86120
PACKAGE_VERSION: ${{ steps.setup-env.outputs.shfmt-version }}
87121
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
122+
- name: Install staticcheck
123+
env:
124+
PACKAGE_URL: honnef.co/go/tools/cmd/staticcheck
125+
PACKAGE_VERSION: ${{ steps.setup-env.outputs.staticcheck-version }}
126+
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
88127
- name: Install Terraform-docs
89128
env:
90129
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
@@ -33,13 +33,13 @@ repos:
3333

3434
# Text file hooks
3535
- repo: https://github.com/igorshubovych/markdownlint-cli
36-
rev: v0.34.0
36+
rev: v0.36.0
3737
hooks:
3838
- id: markdownlint
3939
args:
4040
- --config=.mdl_config.yaml
4141
- repo: https://github.com/pre-commit/mirrors-prettier
42-
rev: v3.0.0-alpha.9-for-vscode
42+
rev: v3.0.3
4343
hooks:
4444
- id: prettier
4545
- repo: https://github.com/adrienverge/yamllint
@@ -51,14 +51,14 @@ repos:
5151

5252
# GitHub Actions hooks
5353
- repo: https://github.com/python-jsonschema/check-jsonschema
54-
rev: 0.23.1
54+
rev: 0.26.3
5555
hooks:
5656
- id: check-github-actions
5757
- id: check-github-workflows
5858

5959
# pre-commit hooks
6060
- repo: https://github.com/pre-commit/pre-commit
61-
rev: v3.3.2
61+
rev: v3.4.0
6262
hooks:
6363
- id: validate_manifest
6464

@@ -81,6 +81,12 @@ repos:
8181
# GoSec
8282
- id: go-sec-repo-mod
8383

84+
# Nix hooks
85+
- repo: https://github.com/nix-community/nixpkgs-fmt
86+
rev: v1.3.0
87+
hooks:
88+
- id: nixpkgs-fmt
89+
8490
# Shell script hooks
8591
- repo: https://github.com/cisagov/pre-commit-shfmt
8692
rev: v0.0.2
@@ -108,12 +114,12 @@ repos:
108114
- id: bandit
109115
args:
110116
- --config=.bandit.yml
111-
- repo: https://github.com/psf/black
112-
rev: 23.3.0
117+
- repo: https://github.com/psf/black-pre-commit-mirror
118+
rev: 23.9.1
113119
hooks:
114120
- id: black
115121
- repo: https://github.com/PyCQA/flake8
116-
rev: 6.0.0
122+
rev: 6.1.0
117123
hooks:
118124
- id: flake8
119125
additional_dependencies:
@@ -123,27 +129,27 @@ repos:
123129
hooks:
124130
- id: isort
125131
- repo: https://github.com/pre-commit/mirrors-mypy
126-
rev: v1.3.0
132+
rev: v1.5.1
127133
hooks:
128134
- id: mypy
129135
additional_dependencies:
130136
- types-PyYAML
131137
- types-requests
132138
- repo: https://github.com/asottile/pyupgrade
133-
rev: v3.4.0
139+
rev: v3.10.1
134140
hooks:
135141
- id: pyupgrade
136142

137143
# Ansible hooks
138-
- repo: https://github.com/ansible-community/ansible-lint
139-
rev: v6.17.0
144+
- repo: https://github.com/ansible/ansible-lint
145+
rev: v6.19.0
140146
hooks:
141147
- id: ansible-lint
142148
# files: molecule/default/playbook.yml
143149

144150
# Terraform hooks
145151
- repo: https://github.com/antonbabenko/pre-commit-terraform
146-
rev: v1.80.0
152+
rev: v1.83.2
147153
hooks:
148154
- id: terraform_fmt
149155
- id: terraform_validate

0 commit comments

Comments
 (0)