Skip to content

Commit

Permalink
Create codeql-analysis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecosta90 authored Aug 19, 2021
1 parent fa0332a commit 82c7c9c
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '27 23 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'go' ]

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

# 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: build
uses: github/codeql-action/autobuild@v1

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

0 comments on commit 82c7c9c

Please sign in to comment.