Skip to content

Commit

Permalink
test codeql (#1)
Browse files Browse the repository at this point in the history
- allow running manually
- copy from other repo the syntax
  • Loading branch information
georgettica authored Dec 2, 2021
1 parent 15e55f0 commit 462914c
Showing 1 changed file with 15 additions and 37 deletions.
52 changes: 15 additions & 37 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,26 @@
name: "Code Scanning - Action"
name: "Daily Code Scanning - Action"

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '0 9 * * *'
- cron: '0 0 * * 0'

jobs:
CodeQL-Build:
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
runs-on: ubuntu-latest

permissions:
# required for all workflows
security-events: write

# only required for workflows in private repositories
actions: read
contents: read

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

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# with:
# languages: javascript

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below).
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -57,5 +33,7 @@ jobs:
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

0 comments on commit 462914c

Please sign in to comment.