https://github.com/vapor-community/swift-dependency-submission
Calculates dependencies for a Swift build-target and submits the list to the Dependency Submission API
https://github.com/vapor-community/swift-dependency-submission
dependencies swift swift-package-manager
Last synced: 3 months ago
JSON representation
Calculates dependencies for a Swift build-target and submits the list to the Dependency Submission API
- Host: GitHub
- URL: https://github.com/vapor-community/swift-dependency-submission
- Owner: vapor-community
- License: mit
- Created: 2023-10-18T15:24:26.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-07T05:31:30.000Z (6 months ago)
- Last Synced: 2025-04-07T06:28:39.853Z (6 months ago)
- Topics: dependencies, swift, swift-package-manager
- Language: Swift
- Homepage:
- Size: 30.3 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# Swift Dependency Submission
This GitHub Action calculates dependencies for a Swift package and submits the list to the [Dependency submission API](https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/using-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
```yaml
name: Swift Dependency Submission
on:
push:
branches:
- main# The API requires write permission on the repository to submit dependencies
permissions:
contents: writejobs:
swift-action-detection:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4- uses: vapor/swiftly-action@v0.1
with:
toolchain: 5.9- name: Run snapshot action
uses: actions/swift-dependency-submission@v0.1
```