Skip to content

Commit e91a3d8

Browse files
onboarding codeowners-validator action
1 parent 3c416c0 commit e91a3d8

110 files changed

Lines changed: 6031 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignore everything
2+
**
3+
4+
# Allow binary
5+
!/codeowners-validator
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug report
3+
about: Report a bug in the project
4+
title: ''
5+
labels: bug
6+
assignees: mszostok
7+
---
8+
9+
<!-- Thank you for your contribution -->
10+
11+
**Description**
12+
13+
<!-- Provide a clear and concise description of the problem.
14+
Describe where it appears, when it occurred, and what it affects. -->
15+
16+
<!-- Provide relevant technical details such as the browser name and version, or the operating system. -->
17+
18+
**Expected result**
19+
20+
<!-- Describe what you expect to happen. -->
21+
22+
**Actual result**
23+
24+
<!-- Describe what happens instead. -->
25+
26+
**Steps to reproduce**
27+
28+
<!-- List the steps to follow to reproduce the bug. Attach any files, links, code samples, or screenshots that could help in investigating the problem. -->
29+
30+
**Troubleshooting**
31+
32+
<!-- Describe the steps you have already taken to solve the issue. -->
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Feature request
3+
about: Suggest an improvement to the project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Thank you for your contribution.-->
11+
12+
**Description**
13+
14+
<!-- Provide a clear and concise description of the feature. -->
15+
16+
**Reasons**
17+
18+
<!-- Explain why we should add this feature. Provide use cases to illustrate its benefits. -->

.github/dependabot.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
# Maintain dependencies for Go
9+
- package-ecosystem: "gomod"
10+
directory: "/"
11+
schedule:
12+
interval: "monthly"
13+
14+
# Maintain dependencies for build tools
15+
- package-ecosystem: "gomod"
16+
directory: "/tools"
17+
schedule:
18+
interval: "monthly"
19+
20+
# Maintain dependencies for GitHub Actions
21+
- package-ecosystem: "github-actions"
22+
directory: "/"
23+
schedule:
24+
interval: "monthly"
25+
26+
# Maintain dependencies for Dockerfile
27+
- package-ecosystem: "docker"
28+
directory: "/"
29+
schedule:
30+
interval: "monthly"

.github/pull-request-template.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Thank you for your contribution -->
2+
3+
**Description**
4+
5+
Changes proposed in this pull request:
6+
7+
-
8+
9+
**Related issue(s)**
10+
11+
<!-- If you refer to a particular issue, provide its number. For example, `Resolves #123`, `Fixes #43`, or `See also #33`. -->
12+
13+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release GitHub Actions
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: "Tag for the release"
8+
required: true
9+
# Uncomment if using yarn
10+
# script:
11+
# description: "Specify the build script to run"
12+
# required: true
13+
# type: string
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
release:
20+
permissions:
21+
actions: read
22+
id-token: write
23+
contents: write
24+
25+
uses: step-security/reusable-workflows/.github/workflows/actions_release.yaml@v1
26+
with:
27+
tag: "${{ github.event.inputs.tag }}"
28+
# script: "${{ github.event.inputs.script }}"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: NPM Audit Fix Run
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
force:
7+
description: "Use --force flag for npm audit fix?"
8+
required: true
9+
type: boolean
10+
base_branch:
11+
description: "Specify a base branch"
12+
required: false
13+
default: "main"
14+
schedule:
15+
- cron: "0 0 * * 1"
16+
17+
jobs:
18+
audit-fix:
19+
uses: step-security/reusable-workflows/.github/workflows/audit_fix.yml@v1
20+
with:
21+
force: ${{ inputs.force || false }}
22+
base_branch: ${{ inputs.base_branch || 'main' }}
23+
24+
permissions:
25+
contents: write
26+
pull-requests: write
27+
packages: read
28+
issues: write
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Auto Cherry-Pick from Upstream
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
base_branch:
7+
description: "Base branch to create the PR against"
8+
required: true
9+
default: "main"
10+
mode:
11+
description: "Run mode: cherry-pick or verify"
12+
required: false
13+
default: "cherry-pick"
14+
15+
pull_request:
16+
types: [opened, synchronize, labeled]
17+
18+
permissions:
19+
contents: write
20+
pull-requests: write
21+
packages: read
22+
issues: write
23+
24+
jobs:
25+
cherry-pick:
26+
if: github.event_name == 'workflow_dispatch' || contains(fromJson(toJson(github.event.pull_request.labels)).*.name, 'review-required')
27+
uses: step-security/reusable-workflows/.github/workflows/auto_cherry_pick.yaml@v1
28+
with:
29+
original-owner: "mszostok"
30+
repo-name: "codeowners-validator"
31+
base_branch: ${{ inputs.base_branch }}
32+
mode: ${{ github.event_name == 'pull_request' && 'verify' || inputs.mode }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Claude Code Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, labeled]
6+
7+
jobs:
8+
code-review:
9+
uses: step-security/reusable-workflows/.github/workflows/claude_review.yml@v1
10+
secrets:
11+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
12+
13+
permissions:
14+
contents: read
15+
pull-requests: write
16+
packages: read
17+
issues: write
18+
id-token: write
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ main ]
9+
schedule:
10+
- cron: '15 15 * * 2'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ 'go' ]
25+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
26+
# Learn more:
27+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
28+
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v4
32+
33+
# Initializes the CodeQL tools for scanning.
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@v2
36+
with:
37+
languages: ${{ matrix.language }}
38+
# If you wish to specify custom queries, you can do so here or in a config file.
39+
# By default, queries listed here will override any specified in a config file.
40+
# Prefix the list here with "+" to use these queries and those in the config file.
41+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
42+
43+
- name: Autobuild
44+
uses: github/codeql-action/autobuild@v2
45+
46+
- name: Perform CodeQL Analysis
47+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)