File tree Expand file tree Collapse file tree 3 files changed +27
-36
lines changed
Expand file tree Collapse file tree 3 files changed +27
-36
lines changed Original file line number Diff line number Diff line change 11---
2+
23name : " CodeQL"
34
45on :
56 push :
6- branches : [ main ]
7+ branches : [main]
78 pull_request :
89 # The branches below must be a subset of the branches above
9- branches : [ main ]
10+ branches : [main]
1011 schedule :
1112 - cron : ' 20 11 * * 1'
1213
@@ -22,22 +23,20 @@ jobs:
2223 strategy :
2324 fail-fast : false
2425 matrix :
25- language : [ 'python' ]
26+ language : ['python']
2627
2728 steps :
28- - name : Checkout repository
29- uses : actions/checkout@v3
30-
31- # Initializes the CodeQL tools for scanning.
32- - name : Initialize CodeQL
33- uses : github/codeql-action/init@v1
34- with :
35- languages : ${{ matrix.language }}
36-
37- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
38- # If this step fails, then you should remove it and run the build manually (see below)
39- - name : Autobuild
40- uses : github/codeql-action/autobuild@v1
41-
42- - name : Perform CodeQL Analysis
43- uses : github/codeql-action/analyze@v1
29+ - name : Checkout repository
30+ uses : actions/checkout@v3
31+
32+ - name : Initialize CodeQL
33+ uses : github/codeql-action/init@v1
34+ with :
35+ languages : ${{ matrix.language }}
36+
37+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
38+ - name : Autobuild
39+ uses : github/codeql-action/autobuild@v1
40+
41+ - name : Perform CodeQL Analysis
42+ uses : github/codeql-action/analyze@v1
Original file line number Diff line number Diff line change 1+ ---
2+
13name : Linting
24on : [pull_request]
35
68 name : flake8
79 runs-on : ubuntu-latest
810 steps :
9- - uses : actions/checkout@v2
11+ - uses : actions/checkout@v3
1012
1113 - name : Set up Python 3
12- uses : actions/setup-python@v1
14+ uses : actions/setup-python@v3
1315
1416 - name : Install flake8
1517 run : pip3 install flake8
1618
1719 - name : Set up reviewdog
18- run : |
19- mkdir -p "$HOME/bin"
20- curl -sfL \
21- https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
22- sh -s -- -b "$HOME/bin"
23- echo "$HOME/bin" >> $GITHUB_PATH
20+ uses : reviewdog/action-setup@v1
2421
2522 - name : Run flake8
2623 env :
3532 name : caddyfmt
3633 runs-on : ubuntu-latest
3734 steps :
38- - uses : actions/checkout@v2
35+ - uses : actions/checkout@v3
3936
4037 - name : Install caddy
4138 run : |
4845 sudo apt install caddy
4946
5047 - name : Set up reviewdog
51- run : |
52- mkdir -p "$HOME/bin"
53- curl -sfL \
54- https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
55- sh -s -- -b "$HOME/bin"
56- echo "$HOME/bin" >> $GITHUB_PATH
48+ uses : reviewdog/action-setup@v1
5749
5850 - name : Run caddy validate
5951 run : caddy validate
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ jobs:
1010 matrix :
1111 python-version : ["3.9", "3.10"]
1212 steps :
13- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v3
1414
1515 - name : Install Python ${{ matrix.python-version }}
16- uses : actions/setup-python@v2
16+ uses : actions/setup-python@v3
1717 with :
1818 python-version : ${{ matrix.python-version }}
1919
You can’t perform that action at this time.
0 commit comments