Skip to content

Commit d2484fe

Browse files
authored
Merge pull request #89 from kumvijaya/current
T6722: updated to use reusable workflows
2 parents 98e8955 + 33c0aef commit d2484fe

20 files changed

+153
-228
lines changed

.github/PULL_REQUEST_TEMPLATE.md

-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ the box, please use [x]
1414
- [ ] New feature (non-breaking change which adds functionality)
1515
- [ ] Code style update (formatting, renaming)
1616
- [ ] Refactoring (no functional changes)
17-
- [ ] Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
1817
- [ ] Other (please describe):
1918

2019
## Related Task(s)
@@ -54,7 +53,6 @@ test_01_simple_options (__main__.TestFeature.test_01_simple_options) ... ok
5453
<!--- The entire development process is outlined here: https://docs.vyos.io/en/latest/contributing/development.html -->
5554
- [ ] I have read the [**CONTRIBUTING**](https://github.com/vyos/vyos-1x/blob/current/CONTRIBUTING.md) document
5655
- [ ] I have linked this PR to one or more Phabricator Task(s)
57-
- [ ] I have run the components [**SMOKETESTS**](https://github.com/vyos/vyos-1x/tree/current/smoketest/scripts/cli) if applicable
5856
- [ ] My commit headlines contain a valid Task id
5957
- [ ] My change requires a change to the documentation
6058
- [ ] 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

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Add pull request labels
3+
4+
on:
5+
pull_request_target:
6+
branches:
7+
- current
8+
9+
permissions:
10+
pull-requests: write
11+
contents: read
12+
13+
jobs:
14+
add-pr-label:
15+
uses: vyos/.github/.github/workflows/add-pr-labels.yml@current
16+
secrets: inherit
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Add rebase label
2+
3+
on:
4+
pull_request_target:
5+
types: [synchronize, opened, reopened, labeled, unlabeled]
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
add-rebase-label:
13+
uses: vyos/.github/.github/workflows/add-rebase-label.yml@current
14+
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/[email protected]
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/[email protected]
25-
with:
26-
token: ${{ secrets.PR_ACTION_ASSIGN_REVIEWERS }}
27-
config: .github/reviewers.yml
13+
uses: vyos/.github/.github/workflows/assign-author.yml@current
14+
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@current
14+
secrets: inherit
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Check pull request message format
3+
4+
on:
5+
pull_request_target:
6+
branches:
7+
- current
8+
types: [opened, synchronize, edited]
9+
10+
permissions:
11+
pull-requests: write
12+
contents: read
13+
14+
jobs:
15+
check-pr-title:
16+
uses: vyos/.github/.github/workflows/check-pr-message.yml@current
17+
secrets: inherit

.github/workflows/check-stale.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "Issue and PR stale management"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
permissions:
7+
pull-requests: write
8+
contents: read
9+
10+
jobs:
11+
stale:
12+
uses: vyos/.github/.github/workflows/check-stale.yml@current
13+
secrets: inherit

.github/workflows/codeql.yml

+20-64
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,30 @@
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" ]
6+
paths:
7+
- '**'
8+
- '!.github/**'
9+
- '!**/*.md'
1710
pull_request:
1811
# The branches below must be a subset of the branches above
1912
branches: [ "current" ]
13+
paths:
14+
- '**'
15+
- '!.github/**'
16+
- '!**/*.md'
2017
schedule:
2118
- cron: '22 10 * * 0'
2219

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
20+
permissions:
21+
actions: read
22+
contents: read
23+
security-events: write
5424

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
60-
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}}"
25+
jobs:
26+
codeql-analysis-call:
27+
uses: vyos/.github/.github/workflows/codeql-analysis.yml@current
28+
secrets: inherit
29+
with:
30+
languages: "['cpp']"

.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@current
12+
secrets: inherit

.github/workflows/lint-j2.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Lint J2
2+
on:
3+
pull_request_target:
4+
branches:
5+
- current
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
lint-j2:
13+
uses: vyos/.github/.github/workflows/lint-j2.yml@current
14+
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)