diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c992e8e..137d3b8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,7 @@ jobs: # There is no expectation for actual Go code so we disable caching as # it relies on the existence of a go.sum file. cache: false - go-version: "1.20" + go-version: "1.23" - name: Lookup Go cache directory id: go-cache run: | diff --git a/.github/workflows/security-scan.yaml b/.github/workflows/security-scan.yaml new file mode 100644 index 0000000..b5c7130 --- /dev/null +++ b/.github/workflows/security-scan.yaml @@ -0,0 +1,21 @@ +--- +name: Security scan + +on: + pull_request_target: {} + workflow_dispatch: {} + push: + branches: [main] + +permissions: + pull-requests: write + contents: read + security-events: write + +jobs: + static-analysis: + runs-on: ubuntu-latest + steps: + - uses: open-turo/actions-security/static-analysis@v4 + with: + semgrep-app-token: ${{ secrets.SEMGREP_APP_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b87032..1e3922d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -129,12 +129,13 @@ repos: hooks: - id: pyupgrade - # Ansible hooks - - repo: https://github.com/ansible-community/ansible-lint - rev: v6.17.0 - hooks: - - id: ansible-lint - # files: molecule/default/playbook.yml + # Ansible hooks (disabled - no Ansible files in this repo) + # - repo: https://github.com/ansible-community/ansible-lint + # rev: v6.17.0 + # hooks: + # - id: ansible-lint + # files: ^(molecule/.*/.*\.yml|.*\.ya?ml)$ + # exclude: ^(\.github/.*|\.pre-commit.*|\.bandit.*|\.mdl.*)$ # Terraform hooks - repo: https://github.com/antonbabenko/pre-commit-terraform @@ -149,9 +150,9 @@ repos: hooks: - id: docker-compose-check - # Packer hooks - - repo: https://github.com/cisagov/pre-commit-packer - rev: v0.0.2 - hooks: - - id: packer_validate - - id: packer_fmt + # Packer hooks (disabled - requires external packer installation) + # - repo: https://github.com/cisagov/pre-commit-packer + # rev: v0.0.2 + # hooks: + # - id: packer_validate + # - id: packer_fmt