diff --git a/.github/dependabot.yml b/.github/dependabot.yml index dc96ec5..b8164c2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,8 +3,12 @@ updates: - package-ecosystem: github-actions directory: / schedule: - interval: weekly + interval: monthly + cooldown: + default-days: 7 - package-ecosystem: gomod directory: / schedule: - interval: weekly + interval: monthly + cooldown: + default-days: 7 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..0428367 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,35 @@ +name: CodeQL +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: '17 2 * * 6' +jobs: + analyze: + permissions: + security-events: write + strategy: + matrix: + language: + - go + - actions + include: + - build-mode: none + - build-mode: manual + language: go + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: lufia/workflows/.github/actions/setup-codeql@bfc84184198b340bf1c34b2c695c2810a8e0897e # v0.11.1 + with: + language: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + - run: go build ./... + if: matrix.language == 'go' + - uses: lufia/workflows/.github/actions/codeql@bfc84184198b340bf1c34b2c695c2810a8e0897e # v0.11.1 + with: + language: ${{ matrix.language }} diff --git a/.github/workflows/vuln.yml b/.github/workflows/vuln.yml new file mode 100644 index 0000000..26969ef --- /dev/null +++ b/.github/workflows/vuln.yml @@ -0,0 +1,9 @@ +name: Vulncheck + +on: + schedule: + - cron: '0 10 */14 * *' +jobs: + vuln: + permissions: + uses: lufia/workflows/.github/workflows/go-vulncheck.yml@bfc84184198b340bf1c34b2c695c2810a8e0897e # v0.11.1