Files
swift-nio/.github/workflows/pull_request_label.yml
T
Franz Busch 837a1ddf57 [CI] Don't persist git credentials in CI (#2847)
# 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.
2024-08-19 18:42:23 +01:00

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/