mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
To improve supply-chain security, reference all GitHub actions using the hash of the released tag. GitHub recommends to do this for third-party actions (https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions#using-third-party-actions). In order to make our CI more deterministic, I opted to do it for all our actions. This means any change to our workflow configuration requires a source code change and thus passing CI on our end. Dependabot will automatically issue PRs for these actions and update the comment with the new version next to them. Resolves: #2497.
45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
name: "CodeQL"
|
|
on:
|
|
workflow_call:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
analyze:
|
|
name: analyze-${{ matrix.working-directory }}
|
|
runs-on: ${{ (matrix.language == 'swift' && 'macos-14') || 'ubuntu-22.04' }}
|
|
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- language: "javascript-typescript"
|
|
working-directory: "website/"
|
|
- language: "javascript-typescript"
|
|
working-directory: "elixir/apps/web/assets/"
|
|
# TODO
|
|
# - language: 'java-kotlin'
|
|
# working-directory: 'kotlin/android'
|
|
# - language: 'swift'
|
|
# working-directory: 'swift/apple'
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v3
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
- name: Autobuild
|
|
uses: github/codeql-action/autobuild@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
|
|
with:
|
|
working-directory: ${{ matrix.working-directory }}
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
|
|
with:
|
|
category: "/language:${{matrix.language}}"
|