Skip to content

Commit feed952

Browse files
authored
Merge pull request #44 from terraform-linters/wata727-patch-1
Create codeql-analysis.yml
2 parents f97e588 + 77fb5ba commit feed952

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "Code scanning - action"
2+
3+
on:
4+
pull_request:
5+
schedule:
6+
- cron: '0 14 * * 3'
7+
8+
jobs:
9+
CodeQL-Build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v2
16+
with:
17+
# We must fetch at least the immediate parents so that if this is
18+
# a pull request then we can checkout the head.
19+
fetch-depth: 2
20+
21+
# If this run was triggered by a pull request event, then checkout
22+
# the head of the pull request instead of the merge commit.
23+
- run: git checkout HEAD^2
24+
if: ${{ github.event_name == 'pull_request' }}
25+
26+
# Initializes the CodeQL tools for scanning.
27+
- name: Initialize CodeQL
28+
uses: github/codeql-action/init@v1
29+
# Override language selection by uncommenting this and choosing your languages
30+
# with:
31+
# languages: go
32+
33+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
34+
# If this step fails, then you should remove it and run the build manually (see below)
35+
- name: Autobuild
36+
uses: github/codeql-action/autobuild@v1
37+
38+
# ℹ️ Command-line programs to run using the OS shell.
39+
# 📚 https://git.io/JvXDl
40+
41+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
42+
# and modify them (or add more) to build your code if your project
43+
# uses a compiled language
44+
45+
#- run: |
46+
# make bootstrap
47+
# make release
48+
49+
- name: Perform CodeQL Analysis
50+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)