Skip to content

fix(ci): 25 add workflow permission #1

fix(ci): 25 add workflow permission

fix(ci): 25 add workflow permission #1

Workflow file for this run

name: 'CodeQL'
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 0 * * 0'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ['javascript', 'typescript', 'go']
# Add 'go' to the list of languages
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v3
# If the Autobuild fails, you may need to manually build your Go code
# Uncomment and modify the following lines if necessary
#- run: |
# go build ./...
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3