Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/reusable-codeql-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ on:
type: string
default: security-extended

permissions: {}

defaults:
run:
shell: bash

jobs:
analyze:
name: CodeQL analyze (Actions)
Expand All @@ -29,6 +35,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/reusable-codeql-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@ on:
type: string
default: autobuild

permissions: {}

defaults:
run:
shell: bash

jobs:
analyze:
name: CodeQL analyze (Go)
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
security-events: write
contents: read
Expand All @@ -38,6 +44,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/reusable-codeql-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ on:
type: string
default: "javascript-typescript"

permissions: {}

defaults:
run:
shell: bash

jobs:
analyze:
name: CodeQL analyze (JS/TS)
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
security-events: write
contents: read
Expand All @@ -22,6 +28,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/reusable-codeql-swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ on:
type: string
default: security-extended

permissions: {}

defaults:
run:
shell: bash

jobs:
analyze:
name: CodeQL analyze (Swift)
Expand All @@ -65,6 +71,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Select the newest installed Xcode
if: inputs.select-newest-xcode
Expand Down Expand Up @@ -98,13 +106,17 @@ jobs:
queries: ${{ inputs.queries }}

- name: Build (clean, unsigned — CodeQL traces the compile)
env:
CODEQL_XCODE_PROJECT: ${{ inputs.project }}
CODEQL_XCODE_SCHEME: ${{ inputs.scheme }}
CODEQL_XCODE_DERIVED_DATA: ${{ inputs.derived-data-path }}
run: |
set -o pipefail
xcodebuild clean build \
-project "${{ inputs.project }}" \
-scheme "${{ inputs.scheme }}" \
-project "$CODEQL_XCODE_PROJECT" \
-scheme "$CODEQL_XCODE_SCHEME" \
-destination 'platform=macOS' \
-derivedDataPath "${{ inputs.derived-data-path }}" \
-derivedDataPath "$CODEQL_XCODE_DERIVED_DATA" \
-skipPackagePluginValidation \
CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO

Expand Down