Skip to content

Commit da1ffce

Browse files
author
Nikola Stojanovic
committed
wip
1 parent 5085714 commit da1ffce

File tree

3 files changed

+71
-73
lines changed

3 files changed

+71
-73
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
verbose: true
8181

8282
lint:
83-
name: Swift Format & Lint
83+
name: Swift Package Lint
8484
runs-on: macos-14
8585

8686
steps:
@@ -90,21 +90,5 @@ jobs:
9090
- name: Select Xcode Version
9191
run: sudo xcode-select -s /Applications/Xcode_16.1.app/Contents/Developer
9292

93-
- name: Check Swift Format
94-
run: |
95-
# Install swift-format if not available
96-
if ! command -v swift-format &> /dev/null; then
97-
echo "swift-format not found, installing..."
98-
git clone https://github.com/apple/swift-format.git
99-
cd swift-format
100-
swift build -c release
101-
sudo cp .build/release/swift-format /usr/local/bin/
102-
cd ..
103-
rm -rf swift-format
104-
fi
105-
106-
# Check formatting (non-destructive)
107-
swift-format --recursive Sources Tests --mode diff
108-
10993
- name: Swift Package Validation
11094
run: swift package diagnose

.github/workflows/security.yml

Lines changed: 57 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,59 @@
1-
name: Security
1+
# Security Workflow - CURRENTLY DISABLED
2+
#
3+
# This workflow is commented out because it requires Code Security/Code Scanning
4+
# to be enabled in the repository settings.
5+
#
6+
# To enable this workflow:
7+
# 1. Go to your repository Settings > Security & analysis
8+
# 2. Enable "Code scanning"
9+
# 3. Uncomment this entire file
10+
# 4. The workflow provides automated security scanning with CodeQL
11+
#
12+
# For more information: https://docs.github.com/en/code-security/code-scanning
213

3-
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
8-
schedule:
9-
# Run weekly security scans
10-
- cron: '0 2 * * 1'
14+
# name: Security
1115

12-
jobs:
13-
codeql:
14-
name: CodeQL Analysis
15-
runs-on: macos-14
16-
permissions:
17-
actions: read
18-
contents: read
19-
security-events: write
20-
21-
strategy:
22-
fail-fast: false
23-
matrix:
24-
language: [ 'swift' ]
25-
26-
steps:
27-
- name: Checkout
28-
uses: actions/checkout@v4
29-
30-
- name: Initialize CodeQL
31-
uses: github/codeql-action/init@v3
32-
with:
33-
languages: ${{ matrix.language }}
34-
35-
- name: Select Xcode Version
36-
run: sudo xcode-select -s /Applications/Xcode_16.1.app/Contents/Developer
37-
38-
- name: Build for CodeQL
39-
run: |
40-
swift package resolve
41-
swift build --configuration release
42-
43-
- name: Perform CodeQL Analysis
44-
uses: github/codeql-action/analyze@v3
45-
with:
46-
category: "/language:${{matrix.language}}"
16+
# on:
17+
# push:
18+
# branches: [ main ]
19+
# pull_request:
20+
# branches: [ main ]
21+
# schedule:
22+
# # Run weekly security scans
23+
# - cron: '0 2 * * 1'
24+
25+
# jobs:
26+
# codeql:
27+
# name: CodeQL Analysis
28+
# runs-on: macos-14
29+
# permissions:
30+
# actions: read
31+
# contents: read
32+
# security-events: write
33+
#
34+
# strategy:
35+
# fail-fast: false
36+
# matrix:
37+
# language: [ 'swift' ]
38+
#
39+
# steps:
40+
# - name: Checkout
41+
# uses: actions/checkout@v4
42+
#
43+
# - name: Initialize CodeQL
44+
# uses: github/codeql-action/init@v3
45+
# with:
46+
# languages: ${{ matrix.language }}
47+
#
48+
# - name: Select Xcode Version
49+
# run: sudo xcode-select -s /Applications/Xcode_16.1.app/Contents/Developer
50+
#
51+
# - name: Build for CodeQL
52+
# run: |
53+
# swift package resolve
54+
# swift build --configuration release
55+
#
56+
# - name: Perform CodeQL Analysis
57+
# uses: github/codeql-action/analyze@v3
58+
# with:
59+
# category: "/language:${{matrix.language}}"

CI_SETUP.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ This document explains the Continuous Integration and Continuous Deployment setu
2828
**Purpose**: Maintain code quality and standards
2929

3030
**Checks**:
31-
- Swift Format validation (non-destructive)
3231
- Swift Package validation with diagnostics
33-
- Dependency auditing
3432

3533
### 3. Release Workflow (`.github/workflows/release.yml`)
3634

@@ -44,16 +42,19 @@ This document explains the Continuous Integration and Continuous Deployment setu
4442
- GitHub release creation with artifacts
4543
- Prerelease detection (alpha, beta, rc tags)
4644

47-
### 4. Security Workflows (`.github/workflows/security.yml`)
45+
### 4. Security Workflows (`.github/workflows/security.yml`) - CURRENTLY DISABLED
4846

49-
**Triggers**: PRs, main branch pushes, and weekly schedule
47+
**Status**: Commented out - requires Code Security/Code Scanning to be enabled
48+
**Triggers**: PRs, main branch pushes, and weekly schedule (when enabled)
5049
**Purpose**: Security scanning and vulnerability detection
5150

52-
**Features**:
53-
- Dependency security auditing
54-
- CodeQL static analysis for Swift code
55-
- SARIF results upload
51+
**Features (when enabled)**:
52+
- CodeQL static analysis for Swift code security
5653
- Weekly automated security scans
54+
- Integration with GitHub Security tab
55+
- SARIF output format for security findings
56+
57+
**To enable**: Uncomment the workflow after enabling Code Scanning in repository settings
5758

5859
## Configuration Files
5960

@@ -77,10 +78,10 @@ This document explains the Continuous Integration and Continuous Deployment setu
7778

7879
## Key Features Inspired by member-ios-app
7980

80-
1. **Comprehensive Platform Testing**: Tests on all supported Apple platforms
81-
2. **Matrix Strategy**: Multiple Swift/Xcode version combinations
81+
1. **Comprehensive Testing**: Native macOS Swift testing with code coverage
82+
2. **Code Quality**: Swift package validation and diagnostics
8283
3. **Caching**: Aggressive SPM caching for performance
83-
4. **Security**: Weekly security scans and dependency auditing
84+
4. **Security**: CodeQL security scanning (currently disabled - enable Code Scanning in repo settings)
8485
5. **Release Automation**: Comprehensive release process with artifacts
8586

8687
## Environment Variables Used
@@ -124,5 +125,5 @@ swift build --configuration release
124125

125126
- **CI Status**: Monitor via GitHub Actions tab
126127
- **Coverage**: Check Codecov reports on PRs
127-
- **Security**: Review weekly security scan results
128+
- **Security**: Currently disabled (enable Code Scanning to activate)
128129
- **Dependencies**: Dependabot will create PRs for updates

0 commit comments

Comments
 (0)