mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-11 08:13:53 -04:00
Update codeql-analysis.yml
[skip ci]
This commit is contained in:
@@ -1,20 +1,22 @@
|
|||||||
name: "Code scanning"
|
# https://github.com/github/codeql-action/blob/master/README.md#usage
|
||||||
|
|
||||||
|
name: Code scanning
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 21 * * 0'
|
- cron: '0 10 * * 3' # every Wednesday at 10 AM UTC == 6 AM EDT
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
CodeQL-Build:
|
CodeQL-Build:
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
|
|
||||||
# CodeQL runs on ubuntu-latest and windows-latest
|
# CodeQL runs on ubuntu-latest and windows-latest
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Allow skipping with [skip ci] (doesn't apply to PRs and crons)
|
||||||
|
if: "github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip ci]')"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -27,7 +29,7 @@ jobs:
|
|||||||
# the head of the pull request instead of the merge commit.
|
# the head of the pull request instead of the merge commit.
|
||||||
- run: git checkout HEAD^2
|
- run: git checkout HEAD^2
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v1
|
uses: github/codeql-action/init@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user