Files
obsidian-metadata/.github/workflows/commit-linter.yml
dependabot[bot] 9ec6919022 ci(deps): bump step-security/harden-runner from 2.2.0 to 2.2.1 (#33)
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](c8454efe5d...1f99358870)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-04 09:09:18 -04:00

40 lines
1.1 KiB
YAML

---
name: Commit Linter
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
lint-commits:
if: "!contains(github.event.head_commit.message, 'bump(release)')"
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for wagoid/commitlint-github-action to get commits in PR
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@1f99358870fe1c846a3ccba386cc2b2246836776 # v2.2.1
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Lint commits
uses: wagoid/commitlint-github-action@v5