Skip to content

Commit f37e128

Browse files
committed
update github actions
1 parent dddc078 commit f37e128

File tree

4 files changed

+26
-66
lines changed

4 files changed

+26
-66
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 9 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL"
132

143
on:
154
push:
16-
branches:
5+
branches:
176
- master
187
- dev
198
paths-ignore:
@@ -23,7 +12,6 @@ on:
2312
- '**/*.yml'
2413
- '**/*.txt'
2514
pull_request:
26-
# The branches below must be a subset of the branches above
2715
branches:
2816
- master
2917
- dev
@@ -34,54 +22,26 @@ on:
3422
- '**/*.yml'
3523
- '**/*.txt'
3624
schedule:
37-
- cron: '33 6 * * 0'
25+
- cron: '30 1 * * 0'
26+
3827

3928
jobs:
40-
analyze:
41-
name: Analyze
29+
CodeQL-Build:
4230
runs-on: ubuntu-latest
4331
permissions:
32+
security-events: write
4433
actions: read
4534
contents: read
46-
security-events: write
47-
48-
strategy:
49-
fail-fast: false
50-
matrix:
51-
language: [ 'python' ]
52-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
53-
# Learn more:
54-
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
5535

5636
steps:
5737
- name: Checkout repository
58-
uses: actions/checkout@v2
38+
uses: actions/checkout@v3
5939

60-
# Initializes the CodeQL tools for scanning.
6140
- name: Initialize CodeQL
62-
uses: github/codeql-action/init@v1
63-
with:
64-
languages: ${{ matrix.language }}
65-
# If you wish to specify custom queries, you can do so here or in a config file.
66-
# By default, queries listed here will override any specified in a config file.
67-
# Prefix the list here with "+" to use these queries and those in the config file.
68-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
41+
uses: github/codeql-action/init@v2
6942

70-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
71-
# If this step fails, then you should remove it and run the build manually (see below)
7243
- name: Autobuild
73-
uses: github/codeql-action/autobuild@v1
74-
75-
# ℹ️ Command-line programs to run using the OS shell.
76-
# 📚 https://git.io/JvXDl
77-
78-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
79-
# and modify them (or add more) to build your code if your project
80-
# uses a compiled language
81-
82-
#- run: |
83-
# make bootstrap
84-
# make release
44+
uses: github/codeql-action/autobuild@v2
8545

8646
- name: Perform CodeQL Analysis
87-
uses: github/codeql-action/analyze@v1
47+
uses: github/codeql-action/analyze@v2

.github/workflows/django.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ jobs:
4242
mysql user: root
4343
mysql password: root
4444

45-
- uses: actions/checkout@v2
45+
- uses: actions/checkout@v3
4646
- name: Set up Python ${{ matrix.python-version }}
47-
uses: actions/setup-python@v1
47+
uses: actions/setup-python@v4
4848
with:
4949
python-version: ${{ matrix.python-version }}
5050
cache: 'pip'
@@ -94,9 +94,9 @@ jobs:
9494
stack-version: '7.12.1'
9595
plugins: 'https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.12.1/elasticsearch-analysis-ik-7.12.1.zip'
9696

97-
- uses: actions/checkout@v2
97+
- uses: actions/checkout@v3
9898
- name: Set up Python ${{ matrix.python-version }}
99-
uses: actions/setup-python@v1
99+
uses: actions/setup-python@v4
100100
with:
101101
python-version: ${{ matrix.python-version }}
102102
cache: 'pip'
@@ -124,12 +124,12 @@ jobs:
124124
- name: Checkout
125125
uses: actions/checkout@v2
126126
- name: Set up QEMU
127-
uses: docker/setup-qemu-action@v1
127+
uses: docker/setup-qemu-action@v2
128128
- name: Set up Docker Buildx
129-
uses: docker/setup-buildx-action@v1
129+
uses: docker/setup-buildx-action@v2
130130

131131
- name: Build and push
132-
uses: docker/build-push-action@v2
132+
uses: docker/build-push-action@v3
133133
with:
134134
context: .
135135
push: false

.github/workflows/docker.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ jobs:
2222
run: |
2323
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
2424
- name: Checkout
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2626
- name: Set up QEMU
27-
uses: docker/setup-qemu-action@v1
27+
uses: docker/setup-qemu-action@v2
2828
- name: Set up Docker Buildx
29-
uses: docker/setup-buildx-action@v1
29+
uses: docker/setup-buildx-action@v2
3030

3131
- name: Login to DockerHub
32-
uses: docker/login-action@v1
32+
uses: docker/login-action@v2
3333
with:
3434
username: ${{ secrets.DOCKERHUB_USERNAME }}
3535
password: ${{ secrets.DOCKERHUB_TOKEN }}
3636
- name: Build and push
37-
uses: docker/build-push-action@v2
37+
uses: docker/build-push-action@v3
3838
with:
3939
context: .
4040
push: true

.github/workflows/publish-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v3
1313

1414
- name: Docker meta
1515
id: meta
1616
uses: docker/metadata-action@v3
1717
with:
1818
images: name/app
1919
- name: Set up QEMU
20-
uses: docker/setup-qemu-action@v1
20+
uses: docker/setup-qemu-action@v2
2121
- name: Set up Docker Buildx
22-
uses: docker/setup-buildx-action@v1
22+
uses: docker/setup-buildx-action@v2
2323
- name: Login to DockerHub
24-
uses: docker/login-action@v1
24+
uses: docker/login-action@v2
2525
with:
2626
username: ${{ secrets.DOCKERHUB_USERNAME }}
2727
password: ${{ secrets.DOCKERHUB_TOKEN }}
2828
- name: Build and push
29-
uses: docker/build-push-action@v2
29+
uses: docker/build-push-action@v3
3030
with:
3131
context: .
3232
push: true

0 commit comments

Comments
 (0)