mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
# Motivation https://yossarian.net/til/post/actions-checkout-can-leak-github-credentials shows a common way to leak git credentials in CI. While we are not publishing artifacts right now, we can harden our security here by disabling the persistence of git credentials as much as possible. # Modification Don't persist git credentials when not needed. # Result Less likely to leak credentials.
19 lines
523 B
YAML
19 lines
523 B
YAML
name: PR label
|
|
|
|
on:
|
|
pull_request:
|
|
types: [labeled, unlabeled, opened, reopened, synchronize]
|
|
|
|
jobs:
|
|
semver-label-check:
|
|
name: Semantic Version label check
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 1
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
- name: Check for Semantic Version label
|
|
uses: ./.github/actions/pull_request_semver_label_checker/
|