Skip to content

Merge pull request #66 from shimastripe/renovate/actions-checkout-digest #119

Merge pull request #66 from shimastripe/renovate/actions-checkout-digest

Merge pull request #66 from shimastripe/renovate/actions-checkout-digest #119

name: "CodeQL"
on:
workflow_dispatch:
push:
branches: [ "main" ]
schedule:
- cron: '25 0 * * 0'
jobs:
analyze:
name: Analyze
runs-on: macos-14
env:
DEVELOPER_DIR: "/Applications/Xcode_15.4.0.app/Contents/Developer"
timeout-minutes: 360
permissions:
security-events: write
steps:
- name: Set up build options
run: |
defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES
defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Configure SPM cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: ~/Library/Caches/org.swift.swiftpm
key: spm-${{ hashFiles('Package.swift') }}
restore-keys: |
spm-
- name: Initialize CodeQL
uses: github/codeql-action/init@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3
with:
languages: swift
- name: Autobuild
uses: github/codeql-action/autobuild@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3
with:
category: "/language:swift"