Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Fix: Github settings
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault committed Dec 8, 2023
1 parent 4e01667 commit 2228d8e
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 18 deletions.
28 changes: 13 additions & 15 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,20 @@

# Labels for action/labeler

area/kubernetes:
- kubernetes/*
- kubernetes/**/*
######################################
# Label area/xxx

cloud/gcp:
- iac/gcp/*
- iac/gcp/**/*
area/inspec:
- changed-files:
- any-glob-to-any-file: controls/**

cloud/aws:
- iac/aws/*
- iac/aws/**/*
area/github:
- changed-files:
- any-glob-to-any-file: .github/**

cloud/azure:
- iac/azure/*
- iac/azure/**/*
######################################
# Label cloud/xxx

kind/documentation:
- docs/*
- docs/**/*
cloud/azure:
- changed-files:
- any-glob-to-any-file: controls/**
48 changes: 48 additions & 0 deletions .github/workflows/project-pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Copyright (C) Nicolas Lamirault <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

# name: "Label PRs from globs"
# on:
# schedule:
# - cron: "0 * * * *"

# jobs:
# execute:
# runs-on: ubuntu-latest
# steps:
# - uses: jpmcb/[email protected]
# with:
# jobs: 'pr-labeler'
# github-token: "${{ secrets.GITHUB_TOKEN }}"

---
name: Project / Pull Request Labeler

on: # yamllint disable-line rule:truthy
pull_request:
types: [opened, reopened, edited]

jobs:
triage:
runs-on: ubuntu-latest
steps:
- name: Monitor Actions
uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- uses: actions/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -28,11 +28,11 @@ repos:
exclude: mkdocs.yml
- id: check-added-large-files
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
rev: v1.3.1
hooks:
- id: insert-license
files: (Makefile|\.mk|Gemfile|\.yaml|\.yml|\.rb)
args:
- --license-filepath
- LICENSE
# - --remove-header
# - --remove-header

0 comments on commit 2228d8e

Please sign in to comment.