github.com/crossplane/upjet@v1.3.0/.github/workflows/codeql.yml (about)

     1  # SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
     2  #
     3  # SPDX-License-Identifier: CC0-1.0
     4  
     5  name: CodeQL
     6  
     7  on:
     8    push:
     9      branches:
    10        - main
    11        - release-*
    12    workflow_dispatch: {}
    13  
    14  jobs:
    15    detect-noop:
    16      runs-on: ubuntu-20.04
    17      outputs:
    18        noop: ${{ steps.noop.outputs.should_skip }}
    19      steps:
    20        - name: Detect No-op Changes
    21          id: noop
    22          uses: fkirc/skip-duplicate-actions@v5.3.0
    23          with:
    24            github_token: ${{ secrets.GITHUB_TOKEN }}
    25            paths_ignore: '["**.md", "**.png", "**.jpg"]'
    26            do_not_skip: '["workflow_dispatch", "schedule", "push"]'
    27            concurrent_skipping: false
    28  
    29    analyze:
    30      runs-on: ubuntu-20.04
    31      needs: detect-noop
    32      if: needs.detect-noop.outputs.noop != 'true'
    33  
    34      steps:
    35        - name: Checkout
    36          uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3
    37          with:
    38            submodules: true
    39  
    40        - name: Initialize CodeQL
    41          uses: github/codeql-action/init@v1
    42          with:
    43            languages: go
    44  
    45        - name: Perform CodeQL Analysis
    46          uses: github/codeql-action/analyze@v1