Skip to content

Commit 0c76550

Browse files
authored
Merge pull request #603 from mitre/add-github-actions
Add GitHub Actions workflows to match caldera core
2 parents 2687f16 + 0dbfd02 commit 0c76550

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed

.github/workflows/greetings.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Greetings
2+
3+
on: [pull_request, issues]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
greeting:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/first-interaction@1d8459ca65b335265f1285568221e229d45a995e
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
issue-message: 'Looks like your first issue -- we aim to respond to issues as quickly as possible. In the meantime, check out our documentation here: http://caldera.readthedocs.io/'
19+
pr-message: 'Wohoo! Your first PR -- thanks for contributing!'

.github/workflows/security.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Security Checks
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, synchronize, reopened, ready_for_review]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
include:
18+
- python-version: 3.13
19+
toxenv: safety
20+
- python-version: 3.13
21+
toxenv: bandit
22+
23+
steps:
24+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
25+
with:
26+
submodules: recursive
27+
- name: Setup python
28+
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
- name: Install dependencies
32+
run: |
33+
pip install --upgrade virtualenv
34+
pip install tox
35+
- name: Run security checks
36+
env:
37+
TOXENV: ${{ matrix.toxenv }}
38+
run: tox

.github/workflows/stale.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
stale:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
steps:
17+
- uses: actions/stale@a20b814fb01b71def3bd6f56e7494d667ddf28da
18+
with:
19+
repo-token: ${{ secrets.GITHUB_TOKEN }}
20+
stale-issue-label: 'no-issue-activity'
21+
stale-pr-label: 'no-pr-activity'
22+
stale-pr-message: 'This pull request is stale because it has had no activity for 60 days. Remove the stale label or comment or this will be closed in 60 days'
23+
stale-issue-message: 'This issue is stale because it has had no activity for 60 days. Remove the stale label or comment or this will be closed in 60 days'
24+
exempt-issue-labels: 'feature,keep'
25+
days-before-stale: 60
26+
days-before-close: 60

0 commit comments

Comments
 (0)