Skip to content

Example workflow: Don't run the bot when PR is from a fork #140

Example workflow: Don't run the bot when PR is from a fork

Example workflow: Don't run the bot when PR is from a fork #140

Workflow file for this run

name: CodeQL scanning
on:
push:
branches:
- 'trunk'
pull_request:
# The branches below must be a subset of the branches above
branches:
- 'trunk'
schedule:
- cron: '0 8 * * 2'
jobs:
# Performs a code analysis using CodeQL.
#
# Performs the following steps:
# - Checks out the repository.
# - Initializes CodeQL.
# - Performs CodeQL analysis.
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ['javascript']
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@e675ced7a7522a761fc9c8eb26682c8b27c42b2b # v3.24.1
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@e675ced7a7522a761fc9c8eb26682c8b27c42b2b # v3.24.1