diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..128a2e5 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,29 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: / + schedule: + interval: weekly + groups: + actions-deps: + patterns: + - "*" + + - package-ecosystem: gomod + directory: / + schedule: + interval: monthly + groups: + security-updates: + applies-to: security-updates + patterns: + - "*" + major-updates: + applies-to: version-updates + update-types: + - "major" + minor-updates: + applies-to: version-updates + update-types: + - "minor" + - "patch" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 82504f0..43b6be4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -75,7 +75,7 @@ jobs: GOARCH: ${{ matrix.arch }} GOARM: ${{ matrix.arm }} - name: Upload artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: avahi2dns-linux-${{ matrix.label }} path: avahi2dns diff --git a/.github/workflows/lint-gha.yml b/.github/workflows/lint-gha.yml new file mode 100644 index 0000000..662e4ee --- /dev/null +++ b/.github/workflows/lint-gha.yml @@ -0,0 +1,28 @@ +name: Lint Github Actions + +on: + push: + branches: [main] + paths: + - ".github/**" + pull_request: + paths: + - ".github/**" + +jobs: + lint: + name: Lint YAML files + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ibiqlik/action-yamllint@v3 + with: + file_or_dir: .github + config_data: | + extends: default + rules: + line-length: + max: 120 + level: warning + document-start: disable + truthy: disable