Skip to content

Calculates dependencies for a Swift build-target and submits the list to the Dependency Submission API

License

Notifications You must be signed in to change notification settings

vapor-community/swift-dependency-submission

Repository files navigation

Swift Dependency Submission

This GitHub Action calculates dependencies for a Swift package and submits the list to the Dependency submission API. Dependencies then appear in your repository's dependency graph, and you'll receive Dependabot alerts and updates for vulnerable or out-of-date dependencies.

Example

name: Swift Dependency Submission
on:
  push:
    branches:
      - main

# The API requires write permission on the repository to submit dependencies
permissions:
  contents: write

jobs:
  swift-action-detection:
    runs-on: ubuntu-latest
    steps:
      - name: 'Checkout Repository'
        uses: actions/checkout@v4

      - uses: vapor/[email protected]
        with:
          toolchain: 5.9

      - name: Run snapshot action
        uses: actions/[email protected]

About

Calculates dependencies for a Swift build-target and submits the list to the Dependency Submission API

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages