Skip to content

Commit

Permalink
Merge pull request #17 from MacPaw/feature/add-codeql-security-checks
Browse files Browse the repository at this point in the history
Add CodeQL security checks
  • Loading branch information
Krivoblotsky authored Mar 16, 2023
2 parents 6337cba + f42b26a commit b2a7d22
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: true

jobs:
analyze:
name: Analyze
runs-on: macos-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'swift' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Build library
run: swift build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"

0 comments on commit b2a7d22

Please sign in to comment.