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

ci: bot misc #5784

Merged
merged 1 commit into from
Nov 3, 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
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: 🤖 dep auto merge
name: 🤖 Auto Merge

on:
pull_request:
branches:
- dev
workflow_dispatch:
workflow_run:
workflows: ["♾️ Compatibility Check"]
types:
- completed

permissions:
pull-requests: write
issues: write
repository-projects: write

jobs:
automerge:
auto-merge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
workflow_dispatch:

jobs:
build:
name: Test Builds
build-test:
if: "! endsWith(github.actor, '[bot]')"
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
Expand Down
31 changes: 8 additions & 23 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,17 @@ on:
workflow_dispatch:

jobs:
analyze:
name: Analyze
codeql-analysis:
if: "! endsWith(github.actor, '[bot]')"
runs-on: ubuntu-latest-16-cores
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'go' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v2
with:
languages: 'go'
- uses: github/codeql-action/autobuild@v2
- uses: github/codeql-action/analyze@v2
19 changes: 19 additions & 0 deletions .github/workflows/compability-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: ♾️ Compatibility Check

on:
pull_request:
types: [opened, synchronize]
branches:
- dev

jobs:
check:
if: github.actor == 'dependabot[bot]'
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: projectdiscovery/actions/setup/go@v1
- run: go mod download && go mod verify && go vet ./...
4 changes: 2 additions & 2 deletions .github/workflows/dockerhub-push.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🌥 Docker Push
name: 🐳 Docker Push

on:
workflow_run:
Expand All @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest-16-cores
steps:
- name: Git Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get GitHub tag
id: meta
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/functional-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:


jobs:
functional:
name: Functional Test
runs-on: ${{ matrix.os }}
functional-test:
if: "! endsWith(github.actor, '[bot]')"
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
workflow_dispatch:

jobs:
lint:
name: Lint Test
lint-test:
if: "! endsWith(github.actor, '[bot]')"
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/performance-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@ name: 🔨 Performance Test
on:
workflow_dispatch:
schedule:
# Weekly
- cron: '0 0 * * 0'
- cron: '0 0 * * 0' # Weekly

jobs:
build:
name: Test Performance
perf-test:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]

runs-on: ${{ matrix.os }}
if: github.repository == 'projectdiscovery/nuclei'
steps:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
workflow_dispatch:

jobs:
docs:
publish-docs:
if: "! endsWith(github.actor, '[bot]')"
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
release-test:
if: "! endsWith(github.actor, '[bot]')"
runs-on: ubuntu-latest-16-cores
steps:
- name: "Check out code"
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/template-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ on:

jobs:
build:
if: "! endsWith(github.actor, '[bot]')"
runs-on: ubuntu-latest-16-cores
steps:
- uses: actions/checkout@v4

- uses: projectdiscovery/actions/setup/go@v1

- name: Template Validation
run: |
go run . -ut
Expand Down