Skip to content

Commit 368be17

Browse files
leogdionclaude
andcommitted
Add SHA-pinning comment to remaining third-party action examples
The "single specific Swift version" and "building and testing your code" examples pin a third-party action by SHA but only carried the not-certified disclaimer. Add the matching actions-use-sha-pinning-comment reusable so every third-party block is consistent. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 8eeb89f commit 368be17

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • content/actions/tutorials/build-and-test-code

content/actions/tutorials/build-and-test-code/swift.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ You can configure your job to use a single specific version of Swift, such as `6
126126

127127
```yaml copy
128128
{% data reusables.actions.actions-not-certified-by-github-comment %}
129+
130+
{% data reusables.actions.actions-use-sha-pinning-comment %}
131+
129132
steps:
130133
- uses: swift-actions/setup-swift@7ca6abe6b3b0e8b5421b88be48feee39cbf52c6a # v2.4.0
131134
with:
@@ -140,6 +143,9 @@ You can use the same commands that you use locally to build and test your code u
140143

141144
```yaml copy
142145
{% data reusables.actions.actions-not-certified-by-github-comment %}
146+
147+
{% data reusables.actions.actions-use-sha-pinning-comment %}
148+
143149
steps:
144150
- uses: {% data reusables.actions.action-checkout %}
145151
- uses: swift-actions/setup-swift@7ca6abe6b3b0e8b5421b88be48feee39cbf52c6a # v2.4.0
@@ -195,7 +201,7 @@ jobs:
195201

196202
## Building and testing for Apple platforms with Xcode
197203

198-
To build and test for a specific Apple platform such as iOS, watchOS, tvOS, or visionOS, use `xcodebuild` on a macOS runner and select a simulator with the `-destination` option. {% data variables.product.prodname_dotcom %}-hosted macOS runners come with Xcode and Apple platform simulators preinstalled. To check which Xcode versions, platform SDKs, OS versions, and simulators are available on each macOS runner, see [AUTOTITLE](/actions/using-github-hosted-runners/about-github-hosted-runners#supported-software).
204+
To build and test for a specific Apple platform such as iOS, watchOS, tvOS, or visionOS, use `xcodebuild` on a macOS runner and select a simulator with the `-destination` option. {% data variables.product.prodname_dotcom %}-hosted macOS runners come with Xcode and Apple platform simulators preinstalled. To check which Xcode versions, platform SDKs, OS versions, and simulators are available on each macOS runner, see [AUTOTITLE](/actions/using-github-hosted-runners/about-github-hosted-runners#supported-software), or open the README for the macOS version you want in the [{% data variables.product.prodname_actions %} Runner Images repository](https://github.com/actions/runner-images/tree/main/images/macos). For the runner labels you can use with `runs-on` (for example, `macos-15`, `macos-14`, or `macos-13`), see [AUTOTITLE](/actions/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories).
199205

200206
```yaml copy
201207
name: Swift
@@ -298,7 +304,7 @@ jobs:
298304

299305
### Apple platforms
300306

301-
To target a specific Apple platform, set the `type` input (`ios`, `watchos`, `tvos`, `visionos`, or `macos`) and, for simulator-based platforms, the `deviceName` and `osVersion`. To check which simulators and OS versions are preinstalled on each macOS runner, see [AUTOTITLE](/actions/using-github-hosted-runners/about-github-hosted-runners#supported-software). If the simulator runtime you request is not already installed on the runner, set `download-platform: true` so the action downloads it before testing.
307+
To target a specific Apple platform, set the `type` input (`ios`, `watchos`, `tvos`, `visionos`, or `macos`) and, for simulator-based platforms, the `deviceName` and `osVersion`. To check which simulators and OS versions are preinstalled on each macOS runner, see [AUTOTITLE](/actions/using-github-hosted-runners/about-github-hosted-runners#supported-software), or open the README for the macOS version you want in the [{% data variables.product.prodname_actions %} Runner Images repository](https://github.com/actions/runner-images/tree/main/images/macos). If the simulator runtime you request is not already installed on the runner, set `download-platform: true` so the action downloads it before testing.
302308

303309
```yaml copy
304310

0 commit comments

Comments
 (0)