Skip to content

Commit 9301c50

Browse files
authored
T6399: added reusable workflows codeowners file to sagitta (#3515)
1 parent b8d8440 commit 9301c50

20 files changed

+132
-281
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ the box, please use [x]
1818
- [ ] Other (please describe):
1919

2020
## Related Task(s)
21-
<!-- All submitted PRs must be linked to a Task on Phabricator. -->
22-
* https://vyos.dev/Txxxx
21+
<!-- optional: Link to related other tasks on Phabricator. -->
22+
<!-- * https://vyos.dev/Txxxx -->
2323

2424
## Component(s) name
2525
<!-- A rather incomplete list of components: ethernet, wireguard, bgp, mpls, ldp, l2tp, dhcp ... -->
@@ -41,9 +41,8 @@ like this
4141
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
4242
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
4343
<!--- The entire development process is outlined here: https://docs.vyos.io/en/latest/contributing/development.html -->
44-
- [ ] I have read the [**CONTRIBUTING**](https://github.com/vyos/vyos-1x/blob/current/CONTRIBUTING.md) document
44+
- [ ] I have read the [**CONTRIBUTING**](https://github.com/vyos/vyos-1x/blob/sagitta/CONTRIBUTING.md) document
4545
- [ ] I have linked this PR to one or more Phabricator Task(s)
46-
- [ ] I have run the components [**SMOKETESTS**](https://github.com/vyos/vyos-1x/tree/current/smoketest/scripts/cli) if applicable
4746
- [ ] My commit headlines contain a valid Task id
4847
- [ ] My change requires a change to the documentation
4948
- [ ] I have updated the documentation accordingly

.github/labeler.yml

-12
This file was deleted.

.github/reviewers.yml

-3
This file was deleted.

.github/workflows/add-pr-labels.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Add pull request labels
3+
4+
on:
5+
pull_request_target:
6+
branches:
7+
- current
8+
- equuleus
9+
- sagitta
10+
11+
permissions:
12+
pull-requests: write
13+
contents: read
14+
15+
jobs:
16+
add-pr-label:
17+
uses: vyos/.github/.github/workflows/add-pr-labels.yml@feature/T6349-reusable-workflows
18+
secrets: inherit

.github/workflows/auto-author-assign.yml

+4-17
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,12 @@ on:
33
pull_request_target:
44
types: [opened, reopened, ready_for_review, locked]
55

6+
67
permissions:
78
pull-requests: write
9+
contents: read
810

911
jobs:
10-
# https://github.com/marketplace/actions/auto-author-assign
1112
assign-author:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: "Assign Author to PR"
15-
uses: toshimaru/auto-author-assign@v1.6.2
16-
with:
17-
repo-token: ${{ secrets.GITHUB_TOKEN }}
18-
19-
# https://github.com/shufo/auto-assign-reviewer-by-files
20-
assign_reviewer:
21-
runs-on: ubuntu-latest
22-
steps:
23-
- name: Request review based on files changes and/or groups the author belongs to
24-
uses: shufo/auto-assign-reviewer-by-files@v1.1.4
25-
with:
26-
token: ${{ secrets.PR_ACTION_ASSIGN_REVIEWERS }}
27-
config: .github/reviewers.yml
13+
uses: vyos/.github/.github/workflows/assign-author.yml@feature/T6349-reusable-workflows
14+
secrets: inherit
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Check pull request message format
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- current
8+
- sagitta
9+
- equuleus
10+
11+
permissions:
12+
pull-requests: write
13+
contents: read
14+
15+
jobs:
16+
check-pr-title:
17+
uses: vyos/.github/.github/workflows/check-pr-message.yml@feature/T6349-reusable-workflows
18+
secrets: inherit
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
name: "PR Conflicts checker"
3+
on:
4+
pull_request_target:
5+
types: [synchronize]
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
check-pr-conflict-call:
13+
uses: vyos/.github/.github/workflows/check-pr-merge-conflict.yml@feature/T6349-reusable-workflows
14+
secrets: inherit

.github/workflows/check-stale.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Issue and PR stale management"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
workflow_dispatch:
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
stale:
13+
uses: vyos/.github/.github/workflows/check-stale.yml@feature/T6349-reusable-workflows
14+
secrets: inherit
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Check for unused imports using Pylint
2+
on:
3+
pull_request:
4+
branches:
5+
- current
6+
- sagitta
7+
- equuleus
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
check-unused-imports:
15+
uses: vyos/.github/.github/workflows/check-unused-imports.yml@feature/T6349-reusable-workflows
16+
secrets: inherit

.github/workflows/codeql.yml

+13-64
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,23 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
12-
name: "CodeQL"
1+
name: "Perform CodeQL Analysis"
132

143
on:
154
push:
16-
branches: [ "current", crux, equuleus ]
5+
branches: [ "current", "sagitta", "equuleus" ]
176
pull_request:
187
# The branches below must be a subset of the branches above
198
branches: [ "current" ]
209
schedule:
2110
- cron: '22 10 * * 0'
11+
workflow_dispatch:
2212

23-
jobs:
24-
analyze:
25-
name: Analyze
26-
runs-on: ubuntu-latest
27-
permissions:
28-
actions: read
29-
contents: read
30-
security-events: write
31-
32-
strategy:
33-
fail-fast: false
34-
matrix:
35-
language: [ 'python' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38-
39-
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v3
42-
43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
52-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53-
# queries: security-extended,security-and-quality
54-
55-
56-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
57-
# If this step fails, then you should remove it and run the build manually (see below)
58-
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v2
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
6017

61-
# ℹ️ Command-line programs to run using the OS shell.
62-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63-
64-
# If the Autobuild fails above, remove it and uncomment the following three lines.
65-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66-
67-
# - run: |
68-
# echo "Run, Build Application using script"
69-
# ./location_of_script_within_repo/buildscript.sh
70-
71-
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@v2
73-
with:
74-
category: "/language:${{matrix.language}}"
18+
jobs:
19+
codeql-analysis-call:
20+
uses: vyos/.github/.github/workflows/codeql-analysis.yml@feature/T6349-reusable-workflows
21+
secrets: inherit
22+
with:
23+
languages: "['python']"

.github/workflows/label-backport.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Mergifyio backport
2+
3+
on: [issue_comment]
4+
5+
permissions:
6+
pull-requests: write
7+
contents: read
8+
9+
jobs:
10+
mergifyio-backport:
11+
uses: vyos/.github/.github/workflows/label-backport.yml@feature/T6349-reusable-workflows
12+
secrets: inherit

.github/workflows/linit-j2.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: J2 Lint
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- current
8+
- sagitta
9+
- equuleus
10+
workflow_dispatch:
11+
12+
permissions:
13+
pull-requests: write
14+
contents: read
15+
16+
jobs:
17+
j2lint:
18+
uses: vyos/.github/.github/workflows/lint-j2.yml@feature/T6349-reusable-workflows
19+
secrets: inherit

.github/workflows/mergifyio_backport.yml

-22
This file was deleted.

.github/workflows/pr-conflicts.yml

-18
This file was deleted.

.github/workflows/pull-request-labels.yml

-20
This file was deleted.

.github/workflows/pull-request-management.yml

-25
This file was deleted.

.github/workflows/pull-request-message-check.yml

-23
This file was deleted.

0 commit comments

Comments
 (0)