Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/spm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,41 @@

jobs:
update:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Checkout to the branch
uses: actions/checkout@v5
- name: Install Swift
uses: slashmo/[email protected]
with:
version: 6.0
- name: Update Swift Package
run: |
set -ex

export TOOLCHAINS=swift

swift package update --package-path ./

swift package update --package-path Resources/parsers/50800
swift package update --package-path Resources/parsers/50900
swift package update --package-path Resources/parsers/51000
swift package update --package-path Resources/parsers/60000
swift package update --package-path Resources/parsers/trunk
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GH_PAT }}
base: "master"
commit-message: "Update Swift Packages"
title: "Update Swift Packages"
add-paths: |
Package.resolved
**/Package.resolved
- name: Enable Pull Request Automerge
if: ${{ steps.cpr.outputs.pull-request-url }}
run: gh pr merge --merge --auto ${{ steps.cpr.outputs.pull-request-url }}
env:
GH_TOKEN: ${{ secrets.GH_PAT }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}