Skip to content

Commit

Permalink
Update Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
robinje committed Feb 3, 2024
1 parent 2585252 commit f0bd1d3
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cloudformation_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"
- name: Install Analysis Tools
run: |
python -m pip install --upgrade pip
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "CodeQL Analysis"

on:
pull_request:

jobs:
codeql:
name: "CodeQL Scan"
runs-on: ubuntu-latest

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

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

- name: Setup Python
if: matrix.language == 'python'
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- name: Autobuild (for compiled languages like Go)
if: matrix.language == 'go'
uses: github/codeql-action/autobuild@v1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
2 changes: 1 addition & 1 deletion .github/workflows/go-auto-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
branches: "**"

permissions:
pull-requests: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
branches: "**"

jobs:
unit-test:
Expand Down

0 comments on commit f0bd1d3

Please sign in to comment.