1
Fork 0
photoview/.github/workflows/codeql-analysis.yml

41 lines
1.2 KiB
YAML
Raw Normal View History

2020-09-27 21:58:32 +02:00
name: "Code Analysis"
2020-09-27 21:28:27 +02:00
on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: '0 1 * * 4'
jobs:
analyze:
name: Analyze
2020-12-17 22:51:43 +01:00
if: github.repository == 'photoview/photoview'
runs-on: ubuntu-20.04
2020-09-27 21:28:27 +02:00
# strategy:
# fail-fast: false
# matrix:
2020-09-27 21:28:27 +02:00
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
# language: ['go', 'javascript']
2020-09-27 21:28:27 +02:00
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
steps:
- name: Checkout repository
uses: actions/checkout@v2
2020-09-27 21:28:27 +02:00
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: go, javascript
# Run further tests
queries: security-extended, security-and-quality
2020-09-27 21:28:27 +02:00
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1