mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-09-09 05:50:57 +00:00
* Add codeql workflow * Disable signing on codeql workflow Updated build command to disable code signing. * Archive * Temporarily disable previews * Try disabling hardening * Release mode * Previews * Temporarily disable. * Update xcodebuild command in codeql.yml * Try swift build output * Fix * Revert "Fix" This reverts commit064172779a
. * Revert "Try swift build output" This reverts commita3aa982223
. * Reset most stuff back to main * Cleanup workflows and limit a few jobs to read. * .
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: "CodeQL Advanced"
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
schedule:
|
|
- cron: '26 15 * * 3'
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze (${{ matrix.language }})
|
|
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
|
|
permissions:
|
|
security-events: write
|
|
packages: read
|
|
actions: read
|
|
contents: read
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- language: actions
|
|
build-mode: none
|
|
# Disable this until CodeQL supports Xcode 26 builds.
|
|
# - language: swift
|
|
# build-mode: manual
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v3
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
build-mode: ${{ matrix.build-mode }}
|
|
- if: matrix.build-mode == 'manual'
|
|
name: "Select Xcode"
|
|
run: sudo xcrun xcode-select -s /Applications/Xcode_26.0.app
|
|
- if: matrix.build-mode == 'manual'
|
|
name: "Build"
|
|
run: xcrun xcodebuild -project Sources/Secretive.xcodeproj -scheme Secretive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v3
|
|
with:
|
|
category: "/language:${{matrix.language}}"
|