From b98f470a7076ce5ff3a788da5cbf747cc781a988 Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Thu, 12 May 2022 18:55:11 +0900 Subject: [PATCH] ci: enable CodeQL Alerts following the OpenSSF Security Scorecards recommendation (#1421) Ref #1298 --- .github/workflows/codeql.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..24ea5e65 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,26 @@ +name: "Code Scanning" + +on: + push: + branches: [master] + pull_request: + branches: [master] + schedule: + - cron: '30 1 * * 0' + +jobs: + CodeQL-Build: + runs-on: ubuntu-latest + permissions: + security-events: write + steps: + - name: Checkout repository + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b + - name: Initialize CodeQL + uses: github/codeql-action/init@32c89b94fd7eb71067f3bf2afd2bfc85efa4a880 + with: + languages: go + - name: Autobuild + uses: github/codeql-action/autobuild@32c89b94fd7eb71067f3bf2afd2bfc85efa4a880 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@32c89b94fd7eb71067f3bf2afd2bfc85efa4a880