Skip to content

Commit

Permalink
Add standard security workflows (#2)
Browse files Browse the repository at this point in the history
These check for common security issues, as well as ensure that we
meet our license compliance obligations.
  • Loading branch information
wadells authored Sep 20, 2023
1 parent eae1756 commit 653769c
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "CodeQL"

on:
push:
branches:
- teleport
pull_request:
branches:
- teleport

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

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

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

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

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

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

on:
pull_request:

jobs:
dependency-review:
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
uses: gravitational/shared-workflows/.github/workflows/dependency-review.yaml@main
permissions:
contents: read

0 comments on commit 653769c

Please sign in to comment.