Skip to content

Build(deps): Bump actions/upload-artifact from 3 to 4 #41

Build(deps): Bump actions/upload-artifact from 3 to 4

Build(deps): Bump actions/upload-artifact from 3 to 4 #41

Workflow file for this run

name: CodeQL Static Analysis
on:
pull_request_target:
types: [opened, synchronize]
workflow_dispatch:
permissions:
contents: read
security-events: write
actions: read
jobs:
analyze_on_PR:
name: Analyze on PR
if: ${{ github.actor != 'dependabot[bot]' && ( github.event_name == 'pull_request' || github.event_name == 'pull_request_target' )}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ["go"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
config-file: codeql-config.yml
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
analyze_on_branch:
name: Analyze on branch
if: ${{ github.actor != 'dependabot[bot]' && ( github.event_name != 'pull_request' && github.event_name != 'pull_request_target' ) }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ["go"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: test event name
run: |
echo ${{ github.event_name }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
config-file: codeql-config.yml
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3