forked from open-telemetry/opentelemetry-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CodeQL Analysis workflow (open-telemetry#565)
- Loading branch information
1 parent
a0261fa
commit 6968948
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: "CodeQL Analysis" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
security-scan: | ||
name: Run CodeQL Analysis | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up CodeQL | ||
uses: github/codeql-action/setup-codeql@v2 | ||
with: | ||
languages: 'swift' | ||
|
||
- name: Initialize CodeQL database | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Run CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: security |