Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
59f893b
Bump github/codeql-action from 3 to 4
dependabot[bot] Oct 13, 2025
a44c47d
Remove an unnecessary permission from the PR label workflow
mcdonnnj Oct 15, 2025
629a0cc
Add a license badge
jsf9k Oct 28, 2025
e133119
Update the color used for the `python` label
mcdonnnj Oct 29, 2025
15771ca
Update the color used for the `javascript` label
mcdonnnj Oct 29, 2025
a7eeb15
Update the color used for the `typescript` label
mcdonnnj Oct 29, 2025
fb7a736
Update the color used for the `ansible` label
mcdonnnj Oct 29, 2025
5503151
Update the color used for the `docker` label
mcdonnnj Oct 29, 2025
dc0d9a0
Add a label and auto-label configuration for shell scripts
mcdonnnj Oct 29, 2025
586af7c
Remove needless blank line
jsf9k Oct 29, 2025
8b5f6d2
Improve a labeler configuration's explanatory comment
mcdonnnj Oct 29, 2025
ad708bd
Rename .flake8 to pyproject.toml and update syntax
jsf9k Nov 6, 2025
2a3bb8b
Add flake8-pyproject as an additional dependency of the flake8 pre-co…
jsf9k Nov 6, 2025
a70cf3c
Move isort config to pyproject.toml file
jsf9k Nov 6, 2025
c1861e6
Add pyproject.toml as a trigger for the test label
jsf9k Nov 6, 2025
22c6f40
Remove the .bandit.yml file
jsf9k Nov 6, 2025
15cb601
Pin the flake8-pyproject dependency in the pre-commit configuration
jsf9k Nov 6, 2025
bc6bf8c
Remove flake8-pyproject dependency from requirements-test.txt
jsf9k Nov 7, 2025
c7c0c0a
Upgrade pre-commit hooks via pre-commit autoupdate
jsf9k Nov 17, 2025
056d2e1
Merge pull request #227 from cisagov/improvement/remove_unneeded_perm…
jsf9k Nov 17, 2025
895ff4f
Merge pull request #228 from cisagov/documentation/add-license-badge
jsf9k Nov 17, 2025
049543f
Merge pull request #229 from cisagov/improvement/update_label_colors
jsf9k Nov 17, 2025
be1d94a
Merge pull request #231 from cisagov/improvement/add_label_configurat…
jsf9k Nov 17, 2025
4a1bb4d
Merge pull request #235 from cisagov/improvement/move-flake8-config-t…
jsf9k Nov 17, 2025
eed01ea
Merge pull request #237 from cisagov/improvement/update-pre-commit-hooks
jsf9k Nov 17, 2025
8cb611d
Merge pull request #226 from cisagov/dependabot/github_actions/github…
jsf9k Nov 17, 2025
2d88e72
Add a CodeQL badge to the README
mcdonnnj Jul 17, 2025
7f52b02
Merge pull request #230 from cisagov/improvement/add_codeql_badge
jsf9k Nov 17, 2025
2759cc5
Update Bandit pre-commit hook
jsf9k Nov 18, 2025
f186c74
Merge pull request #238 from cisagov/improvement/update-bandit
jsf9k Nov 18, 2025
12101f0
Revert "Move all Python tool configs to `pyproject.toml`"
jsf9k Nov 18, 2025
fa65f8e
Merge pull request #239 from cisagov/revert-235-improvement/move-flak…
jsf9k Nov 18, 2025
61978f6
Merge remote-tracking branch 'skeleton/develop' into lineage/skeleton
jsf9k Nov 19, 2025
03c0189
Bump actions/checkout from 5 to 6
dependabot[bot] Nov 24, 2025
504da27
Upgrade the ansible-line pre-commit hook
jsf9k Nov 25, 2025
951238c
Add --py310-plus argument to pyupgrade
jsf9k Nov 26, 2025
d2fb5c3
Remove comments that are no longer relevant
jsf9k Dec 5, 2025
538a953
Pin ansible-core to 2.17.7 or later
jsf9k Dec 5, 2025
7b01d4b
Merge pull request #242 from cisagov/improvement/add-argument-for-pyu…
jsf9k Dec 5, 2025
eadac91
Merge pull request #241 from cisagov/improvement/upgrade-ansible-lint…
jsf9k Dec 5, 2025
2f14595
Merge pull request #240 from cisagov/dependabot/github_actions/action…
jsf9k Dec 5, 2025
aacda2e
Merge pull request #243 from cisagov/improvement/pin-ansible-core
jsf9k Dec 5, 2025
32c966e
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Dec 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ python:
- changed-files:
- any-glob-to-any-file:
- "**/*.py"
shell script:
- changed-files:
- any-glob-to-any-file:
# If this project has any shell scripts that do not end in the ".sh"
# extension, add them below.
- "**/*.sh"
- bump-version
- setup-env
terraform:
- changed-files:
- any-glob-to-any-file:
Expand Down
13 changes: 8 additions & 5 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Rather than breaking up descriptions into multiline strings we disable that
# specific rule in yamllint for this file.
# yamllint disable rule:line-length
- color: f15a53
- color: ff5850
description: Pull requests that update Ansible code
name: ansible
- color: eb6420
Expand All @@ -20,7 +20,7 @@
- color: 0366d6
description: Pull requests that update a dependency file
name: dependencies
- color: 2497ed
- color: 1d63ed
description: Pull requests that update Docker code
name: docker
- color: 5319e7
Expand All @@ -47,7 +47,7 @@
- color: fef2c0
description: This issue or pull request is not applicable, incorrect, or obsolete
name: invalid
- color: f1d642
- color: f0db4f
description: Pull requests that update JavaScript code
name: javascript
- color: ce099a
Expand All @@ -62,7 +62,7 @@
- color: 02a8ef
description: Pull requests that update Packer code
name: packer
- color: 3772a4
- color: 3776ab
description: Pull requests that update Python code
name: python
- color: ef476c
Expand All @@ -71,13 +71,16 @@
- color: d73a4a
description: This issue or pull request addresses a security issue
name: security
- color: 4eaa25
description: Pull requests that update shell scripts
name: shell script
- color: 7b42bc
description: Pull requests that update Terraform code
name: terraform
- color: 00008b
description: This issue or pull request adds or otherwise modifies test code
name: test
- color: 2b6ebf
- color: 2678c5
description: Pull requests that update TypeScript code
name: typescript
- color: 1d76db
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
permissions_monitoring_config: ${{ vars.ACTIONS_PERMISSIONS_CONFIG }}
- id: setup-env
uses: cisagov/setup-env-github-action@v1
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- id: setup-python
uses: actions/setup-python@v6
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,19 @@ jobs:
permissions_monitoring_config: ${{ vars.ACTIONS_PERMISSIONS_CONFIG }}

- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}

# Autobuild attempts to build any compiled languages (C/C++, C#, or
# Java). If this step fails, then you should remove it and run the build
# manually (see below).
- name: Autobuild
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@v4

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -139,4 +139,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
permissions_monitoring_config: ${{ vars.ACTIONS_PERMISSIONS_CONFIG }}
- id: checkout-repo
name: Checkout the repository
uses: actions/checkout@v5
uses: actions/checkout@v6
- id: dependency-review
name: Review dependency changes for vulnerabilities and license changes
uses: actions/dependency-review-action@v4
1 change: 0 additions & 1 deletion .github/workflows/label-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
permissions:
# Permissions required by actions/labeler
contents: read
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
# monitoring configuration *does not* require you to modify
# this workflow.
permissions_monitoring_config: ${{ vars.ACTIONS_PERMISSIONS_CONFIG }}
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Sync repository labels
if: success()
uses: crazy-max/ghaction-github-labeler@v5
Expand Down
48 changes: 18 additions & 30 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,20 @@ repos:

# GitHub Actions hooks
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.33.3
rev: 0.35.0
hooks:
- id: check-github-actions
- id: check-github-workflows

# pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit
rev: v4.3.0
rev: v4.4.0
hooks:
- id: validate_manifest

# Go hooks
- repo: https://github.com/TekWizely/pre-commit-golang
rev: v1.0.0-rc.2
rev: v1.0.0-rc.4
hooks:
# Go Build
- id: go-build-repo-mod
Expand Down Expand Up @@ -129,13 +129,13 @@ repos:

# Python hooks
- repo: https://github.com/PyCQA/bandit
rev: 1.8.6
rev: 1.9.1
hooks:
- id: bandit
args:
- --config=.bandit.yml
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.1.0
rev: 25.11.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
Expand All @@ -145,11 +145,11 @@ repos:
additional_dependencies:
- flake8-docstrings==1.7.0
- repo: https://github.com/PyCQA/isort
rev: 6.0.1
rev: 7.0.0
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.18.1
rev: v1.18.2
hooks:
- id: mypy
- repo: https://github.com/pypa/pip-audit
Expand All @@ -165,13 +165,19 @@ repos:
- --requirement
- requirements.txt
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
rev: v3.21.1
hooks:
- id: pyupgrade
args:
# Python 3.10 is currently the oldest non-EOL version of
# Python, so we want to apply all rules that apply to this
# version or later. See here for more details:
# https://www.gyford.com/phil/writing/2025/08/26/how-to-use-pyupgrade/
- --py310-plus

# Ansible hooks
- repo: https://github.com/ansible/ansible-lint
rev: v25.9.0
rev: v25.11.1
hooks:
- id: ansible-lint
additional_dependencies:
Expand All @@ -187,35 +193,17 @@ repos:
# hook identifies a vulnerability in ansible-core 2.16.13,
# but all versions of ansible 9 have a dependency on
# ~=2.16.X.
#
# It is also a good idea to go ahead and upgrade to version
# 10 since version 9 is going EOL at the end of November:
# https://endoflife.date/ansible
# - ansible>=10,<11
# ansible-core 2.16.3 through 2.16.6 suffer from the bug
# discussed in ansible/ansible#82702, which breaks any
# symlinked files in vars, tasks, etc. for any Ansible role
# installed via ansible-galaxy. Hence we never want to
# install those versions.
#
# Note that the pip-audit pre-commit hook identifies a
# vulnerability in ansible-core 2.16.13. The pin of
# ansible-core to >=2.17 effectively also pins ansible to
# >=10.
#
# It is also a good idea to go ahead and upgrade to
# ansible-core 2.17 since security support for ansible-core
# 2.16 ends this month:
# https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix
# ansible-core<2.17.7 suffers from GHSA-99w6-3xph-cx78.
#
# Note that any changes made to this dependency must also be
# made in requirements.txt in cisagov/skeleton-packer and
# requirements-test.txt in cisagov/skeleton-ansible-role.
- ansible-core>=2.17
- ansible-core>=2.17.7

# Terraform hooks
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.100.0
rev: v1.103.0
hooks:
- id: terraform_fmt
- id: terraform_validate
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# skeleton-tf-module #

[![GitHub Build Status](https://github.com/cisagov/skeleton-tf-module/workflows/build/badge.svg)](https://github.com/cisagov/skeleton-tf-module/actions)
[![License](https://img.shields.io/github/license/cisagov/skeleton-tf-module)](https://spdx.org/licenses/)
[![CodeQL](https://github.com/cisagov/skeleton-tf-module/workflows/CodeQL/badge.svg)](https://github.com/cisagov/skeleton-tf-module/actions/workflows/codeql-analysis.yml)

This is a generic skeleton project that can be used to quickly get a
new [cisagov](https://github.com/cisagov) [Terraform
Expand Down