Skip to content

Commit

Permalink
Merge pull request #1 from shimastripe/feature/codeql
Browse files Browse the repository at this point in the history
Setup Swift CodeQL
  • Loading branch information
shimastripe authored Feb 26, 2024
2 parents 73e6911 + 81dae3d commit d67c7c0
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 11 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '25 0 * * 0'

jobs:
analyze:
name: Analyze
runs-on: macos-13
env:
DEVELOPER_DIR: "/Applications/Xcode_15.2.0.app/Contents/Developer"
timeout-minutes: 40
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@v4
- name: Configure SPM cache
uses: actions/cache@v4
with:
path: ~/Library/Caches/org.swift.swiftpm
key: spm-${{ hashFiles('Package.swift') }}
restore-keys: |
spm-
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: swift
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:swift"
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
archiveVersion = 1;
classes = {
};
objectVersion = 56;
objectVersion = 60;
objects = {

/* Begin PBXBuildFile section */
457736392B8C6061007A66A3 /* IAPClient in Frameworks */ = {isa = PBXBuildFile; productRef = 457736382B8C6061007A66A3 /* IAPClient */; };
4577363B2B8C6061007A66A3 /* IAPView in Frameworks */ = {isa = PBXBuildFile; productRef = 4577363A2B8C6061007A66A3 /* IAPView */; };
458FE15A2B6E239600798686 /* InAppPurchaseViewerApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 458FE1592B6E239600798686 /* InAppPurchaseViewerApp.swift */; };
458FE15E2B6E239700798686 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 458FE15D2B6E239700798686 /* Assets.xcassets */; };
458FE16B2B6E243800798686 /* IAPView in Frameworks */ = {isa = PBXBuildFile; productRef = 458FE16A2B6E243800798686 /* IAPView */; };
458FE16D2B6FC60500798686 /* IAPClient in Frameworks */ = {isa = PBXBuildFile; productRef = 458FE16C2B6FC60500798686 /* IAPClient */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -26,8 +26,8 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
458FE16D2B6FC60500798686 /* IAPClient in Frameworks */,
458FE16B2B6E243800798686 /* IAPView in Frameworks */,
4577363B2B8C6061007A66A3 /* IAPView in Frameworks */,
457736392B8C6061007A66A3 /* IAPClient in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -86,8 +86,8 @@
);
name = InAppPurchaseViewer;
packageProductDependencies = (
458FE16A2B6E243800798686 /* IAPView */,
458FE16C2B6FC60500798686 /* IAPClient */,
457736382B8C6061007A66A3 /* IAPClient */,
4577363A2B8C6061007A66A3 /* IAPView */,
);
productName = InAppPurchaseViewer;
productReference = 458FE1562B6E239600798686 /* InAppPurchaseViewer.app */;
Expand Down Expand Up @@ -117,6 +117,9 @@
Base,
);
mainGroup = 458FE14D2B6E239600798686;
packageReferences = (
4577362D2B8C6024007A66A3 /* XCLocalSwiftPackageReference "../.." */,
);
productRefGroup = 458FE1572B6E239600798686 /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -362,14 +365,21 @@
};
/* End XCConfigurationList section */

/* Begin XCLocalSwiftPackageReference section */
4577362D2B8C6024007A66A3 /* XCLocalSwiftPackageReference "../.." */ = {
isa = XCLocalSwiftPackageReference;
relativePath = ../..;
};
/* End XCLocalSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
458FE16A2B6E243800798686 /* IAPView */ = {
457736382B8C6061007A66A3 /* IAPClient */ = {
isa = XCSwiftPackageProductDependency;
productName = IAPView;
productName = IAPClient;
};
458FE16C2B6FC60500798686 /* IAPClient */ = {
4577363A2B8C6061007A66A3 /* IAPView */ = {
isa = XCSwiftPackageProductDependency;
productName = IAPClient;
productName = IAPView;
};
/* End XCSwiftPackageProductDependency section */
};
Expand Down

0 comments on commit d67c7c0

Please sign in to comment.