From 94b3bae834add13a6ea4b250ce5bc31edc37b141 Mon Sep 17 00:00:00 2001 From: lufia Date: Sun, 28 Jun 2026 21:54:59 +0900 Subject: [PATCH] .github: add workflows and dependabot Change-Id: Ia091535ae6c2c89838b9e90a2904ab1a8c649a76 --- .github/dependabot.yml | 14 ++++++++++++++ .github/workflows/codeql.yml | 35 +++++++++++++++++++++++++++++++++++ .github/workflows/vuln.yml | 10 ++++++++++ 3 files changed, 59 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/codeql.yml create mode 100644 .github/workflows/vuln.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2273b22 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +updates: +- package-ecosystem: gomod + directory: / + schedule: + interval: monthly + cooldown: + default-days: 7 +- package-ecosystem: github-actions + directory: / + schedule: + 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