summaryrefslogtreecommitdiffstats
path: root/.github/workflows/analyze.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/analyze.yaml')
-rw-r--r--.github/workflows/analyze.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/analyze.yaml b/.github/workflows/analyze.yaml
new file mode 100644
index 0000000..5982e60
--- /dev/null
+++ b/.github/workflows/analyze.yaml
@@ -0,0 +1,25 @@
+name: Analyze
+
+on:
+ workflow_dispatch:
+ push:
+ branches: ['main']
+ pull_request:
+ branches: ['main']
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ # We must fetch at least the immediate parents so that if this is
+ # a pull request then we can checkout the head.
+ fetch-depth: 2
+
+ - uses: github/codeql-action/init@v2
+ with:
+ languages: go
+ - uses: github/codeql-action/autobuild@v2
+ - uses: github/codeql-action/analyze@v2