diff --git a/.github/workflows/cron-check-dependencies.yml b/.github/workflows/cron-check-dependencies.yml index 3879fc3..3160219 100644 --- a/.github/workflows/cron-check-dependencies.yml +++ b/.github/workflows/cron-check-dependencies.yml @@ -1,4 +1,4 @@ -name: (Cron) Weekly repository health +name: (Cron) Check dependencies on: schedule: @@ -9,6 +9,7 @@ permissions: contents: write pull-requests: write packages: write + issues: read jobs: call: diff --git a/.github/workflows/manual-sync-common-files.yml b/.github/workflows/manual-sync-common-files.yml deleted file mode 100644 index b259955..0000000 --- a/.github/workflows/manual-sync-common-files.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: (Manual) Sync Common Files - -on: - workflow_dispatch: - inputs: - type: - description: File type to sync - required: true - default: all - type: choice - options: - - all - - configs - - ignores - - taskfiles - -permissions: - contents: write - pull-requests: write - -jobs: - call: - uses: devops-infra/.github/.github/workflows/reusable-manual-sync-common-files.yml@v1 - with: - sync-type: ${{ inputs.type }} - template-profile: actions - secrets: inherit diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 32ffeba..7e16b3a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,16 +31,16 @@ repos: pass_filenames: false - id: hadolint name: hadolint - entry: bash -lc 'docker run --rm -v "$PWD:/work" -w /work hadolint/hadolint:latest-debian hadolint Dockerfile' + entry: bash -lc 'docker run --rm -v "$PWD:/work" -w /work hadolint/hadolint:latest-debian /bin/hadolint "$@"' -- language: system - pass_filenames: false + files: (^|/)Dockerfile(\..*)?$ - id: shellcheck name: shellcheck - entry: bash -lc 'docker run --rm -v "$PWD:/work" -w /work koalaman/shellcheck:stable -x -S style entrypoint.sh' + entry: bash -lc 'docker run --rm -v "$PWD:/work" -w /work koalaman/shellcheck:stable -x -S style "$@"' -- language: system - pass_filenames: false + files: \.sh$ - id: yamllint name: yamllint - entry: bash -lc 'docker run --rm -v "$PWD:/work" -w /work cytopia/yamllint -c .yamllint.yml .' + entry: bash -lc 'docker run --rm -v "$PWD:/work" -w /work cytopia/yamllint -c .yamllint.yml "$@"' -- language: system - pass_filenames: false + files: \.(yml|yaml)$