Skip to content

Repository files navigation

example-swift-swiftpm

Find vulnerabilities, trace reachability, and audit open-source risk in your Swift project.

About

This repository is a Bomly example project for Swift with SwiftPM. Use it to try every Bomly feature — from basic SCA scans to vulnerability audits, reachability analysis, dependency tracing, and policy-driven CI gates.

Dependency manifests

File Role
Package.swift Dependency manifest
Package.resolved Dependency manifest

Try it with Bomly

1. Discover all dependencies

Map your full dependency graph — direct and transitive:

bomly scan --url https://github.com/bomly-dev/example-swift-swiftpm --ecosystems swift

2. Find vulnerabilities

Enrich packages with CVE data and surface real findings:

bomly scan --url https://github.com/bomly-dev/example-swift-swiftpm --ecosystems swift --enrich --audit

3. Trace why a dependency exists

Understand every path that pulls vapor/vapor into your graph:

bomly explain vapor/vapor --url https://github.com/bomly-dev/example-swift-swiftpm

4. See what changed between releases

Compare dependency graphs across any two refs - commits, branches, or tags:

bomly diff \
  --url https://github.com/bomly-dev/example-swift-swiftpm \
  --base v0.9.0 --head v1.0.0 \
  --enrich

5. Add a security gate to CI

Fail your pipeline automatically when high-severity vulnerabilities are introduced:

# .github/workflows/bomly-guard.yml
name: Bomly Guard
on:
  pull_request:

permissions:
  contents: read
  pull-requests: write
  issues: write
  security-events: write

jobs:
  guard:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
        with:
          fetch-depth: 0
      # Add the package-manager setup steps this ecosystem needs before Bomly Guard.
      - uses: bomly-dev/bomly-guard@v1
        with:
          fail-on: high
          comment-summary-in-pr: always

Made with Bomly — open-source SCA for every ecosystem.

About

Bomly QA test repo

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages