-
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.
Merge pull request #10 from githubschool/security
Create security.yml
- Loading branch information
Showing
1 changed file
with
58 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,58 @@ | ||
--- | ||
########################## | ||
########################## | ||
## CodeQL Security Scan ## | ||
########################## | ||
########################## | ||
name: CodeQl Analysis | ||
|
||
# | ||
# Documentation: | ||
# https://help.github.com/en/articles/workflow-syntax-for-github-actions | ||
# https://github.com/github/codeql-action | ||
# | ||
|
||
############################# | ||
# Start the job on all push # | ||
############################# | ||
on: | ||
push: | ||
branches-ignore: | ||
- 'master' | ||
- 'main' | ||
|
||
############### | ||
# Set the Job # | ||
############### | ||
jobs: | ||
scan: | ||
# Name the Job | ||
name: CodeQL Analysis | ||
# Set the agent to run on | ||
runs-on: ubuntu-latest | ||
################## | ||
# Load all steps # | ||
################## | ||
steps: | ||
########################## | ||
# Checkout the code base # | ||
########################## | ||
- name: Checkout Code | ||
uses: actions/[email protected] | ||
with: | ||
# Full git history is needed to get a proper list of changed files | ||
fetch-depth: 0 | ||
|
||
##################### | ||
# Initialize CodeQL # | ||
##################### | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: python | ||
|
||
####################### | ||
# Run CodeQL Analysis # | ||
####################### | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |