Add `persist-credentials: false` to all `actions/checkout` usages to prevent Git credentials from being persisted in the repository after checkout completes. See: https://docs.zizmor.sh/audits/#artipacked
42 lines
778 B
YAML
42 lines
778 B
YAML
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: 2021 The Elixir Team
|
|
|
|
name: Markdown Content
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
|
|
paths: &paths-filter
|
|
- "**/*.md"
|
|
- .github/workflows/markdown.yml
|
|
- .markdownlint-cli2.jsonc
|
|
|
|
pull_request:
|
|
paths: *paths-filter
|
|
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
LANG: C.UTF-8
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint Markdown content
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Run markdownlint-cli2
|
|
uses: DavidAnson/markdownlint-cli2-action@07035fd053f7be764496c0f8d8f9f41f98305101 # v22.0.0
|