Skip to content

Commit 31032ce

Browse files
authored
Enable the api breaking check to work for private repos (#143)
* Enable the api breaking check to work for private repos # Motivation Currently, the API breaking check is not working for private repos since it requires git credentials to be configured so that it can clone the repo again # Modifications This sets the `persist-credentials` to `true` for only the diagnose API breaking checks job since that one has a credible need to re-use the git credentials # Result API breaking change checking now works for private repos * Update soundness.yml
1 parent bc2db71 commit 31032ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/soundness.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ jobs:
9797
- name: Checkout repository
9898
uses: actions/checkout@v4
9999
with:
100-
persist-credentials: false
100+
# This is set to true since swift package diagnose-api-breaking-changes is
101+
# cloning the repo again and without it being set to true this job won't work for
102+
# private repos.
103+
persist-credentials: true
101104
submodules: true
102105
fetch-tags: true
103106
fetch-depth: 0 # Fetching tags requires fetch-depth: 0 (https://github.com/actions/checkout/issues/1471)

0 commit comments

Comments
 (0)