Skip to content

Agent Mesh

add security actions

Antonio Ojea025b8d860bd4
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 00000000..1ef64bff
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,38 @@
+name: CodeQL
+
+on:
+ push:
+ branches:
+ - 'main'
+ tags:
+ - 'v*'
+ pull_request:
+ branches: [ main ]
+ schedule:
+ - cron: '0 6 * * 1'
+
+permissions:
+ contents: read
+
+env:
+ GO_VERSION: "1.26"
+
+jobs:
+ analyze:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ security-events: write
+ steps:
+ - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
+ with:
+ go-version: ${{ env.GO_VERSION }}
+ cache: false
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - uses: github/codeql-action/init@c4dd10e44af883a891fe31ced449bcb4a6728b9b # v3.37.6
+ with:
+ languages: go
+ - uses: github/codeql-action/autobuild@c4dd10e44af883a891fe31ced449bcb4a6728b9b # v3.37.6
+ - uses: github/codeql-action/analyze@c4dd10e44af883a891fe31ced449bcb4a6728b9b # v3.37.6
diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml
new file mode 100644
index 00000000..08839f93
--- /dev/null
+++ b/.github/workflows/govulncheck.yml
@@ -0,0 +1,28 @@
+name: Govulncheck
+
+on:
+ push:
+ branches:
+ - 'main'
+ tags:
+ - 'v*'
+ pull_request:
+ branches: [ main ]
+ schedule:
+ - cron: '0 6 * * 1'
+
+permissions:
+ contents: read
+
+env:
+ GO_VERSION: "1.26"
+
+jobs:
+ govulncheck:
+ runs-on: ubuntu-latest
+ steps:
+ - id: govulncheck
+ uses: golang/govulncheck-action@032d45514ae346b1db93c04b0c90b841c370344f # v1.1.0
+ with:
+ go-version-input: ${{ env.GO_VERSION }}
+ go-package: ./...