Skip to content

Commit

Permalink
Merge pull request #26 from jentfoo/jent/security-ci
Browse files Browse the repository at this point in the history
Add Security CI - Dependency Review + CodeQL
  • Loading branch information
fheinecke authored Mar 13, 2024
2 parents e759d28 + 39302e6 commit 55917a3
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "CodeQL"

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'go' ]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Set up Go
uses: actions/setup-go@v5
with:
cache: false
go-version-file: go.mod
if: ${{ matrix.language == 'go' }}

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
10 changes: 10 additions & 0 deletions .github/workflows/dependency-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Dependency Review

on:
pull_request:

jobs:
dependency-review:
uses: gravitational/shared-workflows/.github/workflows/dependency-review.yaml@main
permissions:
contents: read

0 comments on commit 55917a3

Please sign in to comment.