Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commit signing template + reorder the config #26

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ groups:
- name: base
templates:
- dep-review
- commit-signing

- name: go
templates:
Expand All @@ -21,15 +22,17 @@ groups:
- go-test

files:
- name: go-makefile
template_name: go-makefile
repo_path: Makefile
- name: commit-signing
template_name: check-commit-signing.yml
repo_path: .github/workflows/check-commit-signing.yml
alternate_paths:
- .github/workflows/check-commit-signing.yaml

- name: go-test
template_name: go-test.yml
repo_path: .github/workflows/go-test.yml
- name: dep-review
template_name: dependency-review.yml
repo_path: .github/workflows/dependency-review.yml
alternate_paths:
- .github/go-test.yaml
- .github/workflows/dependency-review.yaml

- name: dependabot
template_name: dependabot.yml
Expand All @@ -43,11 +46,15 @@ files:
alternate_paths:
- .github/dependabot.yaml

- name: dep-review
template_name: dependency-review.yml
repo_path: .github/workflows/dependency-review.yml
- name: go-makefile
template_name: go-makefile
repo_path: Makefile

- name: go-test
template_name: go-test.yml
repo_path: .github/workflows/go-test.yml
alternate_paths:
- .github/workflows/dependency-review.yaml
- .github/go-test.yaml

- name: prettier
template_name: prettierrc.yml
Expand Down
29 changes: 29 additions & 0 deletions templates/check-commit-signing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 🚨 Check commit signing

on:
push:
branches:
- long_lived/**
- main
- release/**
pull_request:
branches:
- "**"

concurrency:
group: ${{ github.event_name == 'pull_request' && format('{0}-{1}', github.workflow_ref, github.event.pull_request.number) || github.run_id }}
cancel-in-progress: true

jobs:
check-commit-signing:
name: Check commit signing
runs-on: [ubuntu-latest]
timeout-minutes: 5

steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: chia-network/actions/check-commit-signing@main