From 8c2bfaed92f643eea517cadaba25d025a1a0ebbb Mon Sep 17 00:00:00 2001 From: lufia Date: Sat, 27 Jun 2026 14:59:38 +0900 Subject: [PATCH] .github: add workflows and dependabot Change-Id: I5616505d1d336351f508c4c8c4093220f6c0c937 --- .github/dependabot.yml | 12 ++++++++---- .github/workflows/codeql.yml | 35 +++++++++++++++++++++++++++++++++++ .github/workflows/vuln.yml | 10 ++++++++++ 3 files changed, 53 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/codeql.yml create mode 100644 .github/workflows/vuln.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index dc96ec5..2273b22 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,10 +1,14 @@ version: 2 updates: -- package-ecosystem: github-actions +- package-ecosystem: gomod directory: / schedule: - interval: weekly -- package-ecosystem: gomod + interval: monthly + cooldown: + default-days: 7 +- package-ecosystem: github-actions 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..37105c0 --- /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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + - 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..604bf93 --- /dev/null +++ b/.github/workflows/vuln.yml @@ -0,0 +1,10 @@ +name: Vulncheck + +on: + schedule: + - cron: '0 10 */14 * *' +permissions: + contents: read +jobs: + vuln: + uses: lufia/workflows/.github/workflows/go-vulncheck.yml@bfc84184198b340bf1c34b2c695c2810a8e0897e # v0.11.1