Skip to content
Merged
Show file tree
Hide file tree
Changes from 59 commits
Commits
Show all changes
60 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
bb93773
Bump hashicorp/aws from 6.15.0 to 6.21.0 in /terraform-build-user
dependabot[bot] Nov 17, 2025
f216969
Bump hashicorp/aws from 6.15.0 to 6.21.0 in /terraform-post-packer
dependabot[bot] 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
9e24266
Merge remote-tracking branch 'skeleton/develop' into lineage/skeleton
jsf9k Nov 19, 2025
25dabee
Keep two Bandit blocks in sync wrt version
jsf9k Nov 19, 2025
6394aaa
Merge pull request #479 from cisagov/dependabot/terraform/terraform-b…
jsf9k Nov 20, 2025
370cbd1
Merge pull request #480 from cisagov/dependabot/terraform/terraform-p…
jsf9k Nov 20, 2025
2948c8e
Merge pull request #481 from cisagov/lineage/skeleton
jsf9k Nov 20, 2025
3713933
Ignore vulnerability when running pip-audit
jsf9k Dec 5, 2025
4bccdb4
Merge pull request #487 from cisagov/nonsense/ignore-pip-audit-finding
jsf9k Dec 5, 2025
22a337d
Add --py310-plus argument to pyupgrade
jsf9k Nov 26, 2025
270ab7a
Upgrade the ansible-line pre-commit hook
jsf9k Nov 25, 2025
ab1d12c
Bump actions/checkout from 5 to 6
dependabot[bot] Nov 24, 2025
57008cc
Remove comments that are no longer relevant
jsf9k Dec 5, 2025
f9ee243
Pin ansible-core to 2.17.7 or later
jsf9k Dec 5, 2025
c857783
Upgrade to actions/checkout@v6
jsf9k Dec 5, 2025
344149a
Remove comments that are no longer relevant
jsf9k Dec 5, 2025
49da8d8
Pin ansible-core to 2.17.7 or later
jsf9k Dec 5, 2025
7fdeca3
Bump version from 3.0.0 to 3.0.1-rc.1
jsf9k Dec 5, 2025
e59f3ec
Stop ignoring vulnerability when running pip-audit
jsf9k Dec 5, 2025
02a55ca
Finalize version from 3.0.1-rc.1 to 3.0.1
jsf9k Dec 8, 2025
e1d323d
Merge pull request #488 from cisagov/security/stop-ignoring-pip-audit…
jsf9k Dec 8, 2025
d3d54af
Bump hashicorp/aws from 6.21.0 to 6.25.0 in /terraform-build-user
dependabot[bot] Dec 8, 2025
0fc76cc
Bump hashicorp/aws from 6.21.0 to 6.25.0 in /terraform-post-packer
dependabot[bot] Dec 8, 2025
5044365
Merge pull request #489 from cisagov/dependabot/terraform/terraform-b…
jsf9k Dec 8, 2025
4e8001c
Merge pull request #490 from cisagov/dependabot/terraform/terraform-p…
jsf9k Dec 8, 2025
91f1ac2
Merge remote-tracking branch 'skeleton/develop' into lineage/skeleton
jsf9k Dec 9, 2025
755cbd3
Bump version from 2.0.0 to 2.0.1-rc.1
jsf9k Dec 9, 2025
18b6f82
Finalize version from 2.0.1-rc.1 to 2.0.1
jsf9k Dec 10, 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 @@ -48,6 +48,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
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,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 Expand Up @@ -246,7 +246,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 Expand Up @@ -324,7 +324,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/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,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
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
66 changes: 31 additions & 35 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 @@ -130,7 +130,7 @@ repos:
# Python hooks
# Run bandit on the "tests" tree with a configuration
- repo: https://github.com/PyCQA/bandit
rev: 1.8.6
rev: 1.9.1
hooks:
- id: bandit
name: bandit (tests tree)
Expand All @@ -139,13 +139,13 @@ repos:
- --config=.bandit.yml
# Run bandit on everything except the "tests" tree
- repo: https://github.com/PyCQA/bandit
rev: 1.8.6
rev: 1.9.1
hooks:
- id: bandit
name: bandit (everything else)
exclude: tests
- 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 @@ -155,23 +155,31 @@ 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
rev: v2.9.0
hooks:
- id: pip-audit
args:
# We have to ignore this particular vulnerability in
# ansible-core>=2.11 as there is currently no fix. See
# cisagov/skeleton-packer#380 for more details.
# We have to ignore this vulnerability since we need to pin
# to ansible 10 for now to support our CyHy code that must
# still run on Debian Buster. This vulnerability is fixed
# in ansible>=12.
#
# This isn't a big deal since the vulnerability only impacts
# users of the Keycloak modules in
# ansible.community.general, and we don't use these modules.
#
# TODO: Remove this when it becomes possible. See
# cisagov/skeleton-packer#486 for more details.
- --ignore-vuln
- GHSA-99w6-3xph-cx78
- GHSA-8ggh-xwr9-3373
# Add any pip requirements files to scan
- --requirement
- requirements-dev.txt
Expand All @@ -180,13 +188,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 @@ -202,35 +216,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 @@
# samba-packer 💀📦 #

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

This repository contains [Packer](https://packer.io) code to build a
[Samba](https://www.samba.org/)-enabled AWS AMI.
Expand Down
30 changes: 2 additions & 28 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,44 +1,18 @@
# With the release of version 2.10, Ansible finally correctly
# identifies Kali Linux as being the Kali distribution of the Debian
# OS family. This simplifies a lot of things for roles that support
# Kali Linux, so it makes sense to force the installation of Ansible
# 2.10 or newer.
#
# We need at least version 6 to correctly identify Amazon Linux 2023
# as using the dnf package manager, and version 8 is currently the
# oldest supported version.
#
# Version 10 is required because the pip-audit pre-commit 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
#
# We have tested against version 10. We want to avoid automatically
# jumping to another major version without testing, since there are
# often breaking changes across major versions. This is the reason
# for the upper bound.
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. Normally we would pin ansible-core
# accordingly (>2.16.13), but the above pin of ansible>=10 effectively
# pins ansible-core to >=2.17 anyway so that's what we use.
#
# 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-test.txt in cisagov/skeleton-ansible-role and
# .pre-commit-config.yaml in cisagov/skeleton-generic.
ansible-core>=2.17
ansible-core>=2.17.7
boto3
docopt
# The bump-version script requires at least version 3 of semver.
Expand Down
Loading