diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 84da8d0..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,11 +0,0 @@ -version: 2 -updates: - - package-ecosystem: github-actions - directory: / - schedule: - interval: weekly - - - package-ecosystem: docker - directory: / - schedule: - interval: weekly diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index 2fb913e..0000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,21 +0,0 @@ -change: - - head-branch: ["^change/"] - -enhancement: - - head-branch: ["^feature/", "^feat/", "^enhancement/", "^enh/"] - -bug: - - head-branch: ["^fix/", "^bug/"] - -chore: - - head-branch: ["^chore/"] - -documentation: - - head-branch: ["^docs/", "^doc/"] - - changed-files: - - any-glob-to-any-file: "**/*.md" - -dependencies: - - head-branch: ["^deps/", "^dep/", "^dependabot/"] - - changed-files: - - any-glob-to-any-file: ["go.mod", "go.sum"] diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml deleted file mode 100644 index 4dbcf1a..0000000 --- a/.github/workflows/dependabot-auto-merge.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Dependabot auto-merge -on: pull_request_target - -permissions: - contents: read - -jobs: - dependabot: - runs-on: ubuntu-22.04 - if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} - permissions: - pull-requests: write - contents: write - steps: - - name: Dependabot metadata - id: dependabot-metadata - uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0 - - - name: Enable auto-merge for Dependabot PRs - run: gh pr merge --auto --squash "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{ secrets.NGINX_PAT }} diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index c210108..e56a9a1 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -9,10 +9,18 @@ jobs: triage: permissions: contents: read - pull-requests: write + pull-requests: write # for actions/labeler to add labels runs-on: ubuntu-22.04 steps: + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + sparse-checkout: | + labeler.yml + sparse-checkout-cone-mode: false + repository: nginxinc/k8s-common + - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" sync-labels: true + configuration-path: labeler.yml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 518db12..0bda213 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,6 @@ repos: - id: end-of-file-fixer - id: check-yaml args: [--allow-multiple-documents] - - id: check-ast - id: check-added-large-files - id: check-merge-conflict - id: check-shebang-scripts-are-executable @@ -22,8 +21,8 @@ repos: - id: mixed-line-ending args: [--fix=lf] - id: no-commit-to-branch - - id: requirements-txt-fixer - id: fix-byte-order-marker + - id: detect-private-key - repo: https://github.com/gitleaks/gitleaks rev: v8.18.4 @@ -39,3 +38,6 @@ repos: rev: v1.35.1 hooks: - id: yamllint + +ci: + autoupdate_schedule: quarterly # We use renovate for more frequent updates and there's no way to disable autoupdate