Skip to content

Commit badcf2e

Browse files
author
Pedro Ribeiro
authored
Merge pull request #25 from rapid7/master
sasas
2 parents e33f4ea + cc686ee commit badcf2e

File tree

1,551 files changed

+35961
-8642
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,551 files changed

+35961
-8642
lines changed

.github/workflows/schedule-stale.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
schedule:
3-
- cron: "0 15 * * *"
3+
- cron: "0 15 * * 1-5"
44
name: Stale Bot workflow
55
jobs:
66
build:
@@ -14,7 +14,7 @@ jobs:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
1515
days-before-stale: 30
1616
days-before-close: 30
17-
operations-per-run: 50
17+
operations-per-run: 75
1818
stale-issue-message: |
1919
Hi!
2020
@@ -32,5 +32,5 @@ jobs:
3232
3333
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.
3434
exempt-issue-labels: |
35-
not-stale,confirmed,easy,newbie-friendly,suggestion,suggestion-module,suggestion-feature,suggestion-docs
35+
not-stale,confirmed,easy,newbie-friendly,suggestion,suggestion-module,suggestion-feature,suggestion-docs,ascii-utf8-issues,database,feature,enhancement,library
3636
debug-only: false

.github/workflows/verify.yml

+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
name: Verify
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- gh-pages
7+
- metakitty
8+
pull_request:
9+
branches:
10+
- '*'
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-16.04
15+
timeout-minutes: 40
16+
name: Docker Build
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v2
20+
21+
- name: docker-compose build
22+
run: |
23+
curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` > docker-compose
24+
chmod +x docker-compose
25+
sudo mv docker-compose /usr/bin
26+
27+
/usr/bin/docker-compose build
28+
29+
test:
30+
runs-on: ubuntu-16.04
31+
timeout-minutes: 40
32+
33+
services:
34+
postgres:
35+
image: postgres:9.6
36+
ports: ["5432:5432"]
37+
env:
38+
POSTGRES_USER: postgres
39+
POSTGRES_PASSWORD: postgres
40+
options: >-
41+
--health-cmd pg_isready
42+
--health-interval 10s
43+
--health-timeout 5s
44+
--health-retries 5
45+
46+
strategy:
47+
fail-fast: true
48+
matrix:
49+
ruby:
50+
- 2.5
51+
- 2.6
52+
- 2.7
53+
test_cmd:
54+
- bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content"
55+
- bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content"
56+
# Used for testing the remote data service
57+
- bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content" REMOTE_DB=1
58+
- bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content" REMOTE_DB=1
59+
60+
env:
61+
RAILS_ENV: test
62+
63+
name: Ruby ${{ matrix.ruby }} - ${{ matrix.test_cmd }}
64+
steps:
65+
- name: Install system dependencies
66+
run: sudo apt-get install libpcap-dev graphviz
67+
68+
- name: Checkout code
69+
uses: actions/checkout@v2
70+
71+
- uses: actions/setup-ruby@v1
72+
with:
73+
ruby-version: ${{ matrix.ruby }}
74+
75+
- name: Setup bundler
76+
run: |
77+
gem install bundler
78+
79+
- uses: actions/cache@v2
80+
with:
81+
path: vendor/bundle
82+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
83+
restore-keys: |
84+
${{ runner.os }}-gems-
85+
86+
- name: Bundle install
87+
run: |
88+
bundle config path vendor/bundle
89+
bundle install --jobs 4 --retry 3
90+
env:
91+
BUNDLER_WITHOUT: coverage development pcap
92+
93+
- name: Setup mstidy
94+
run: |
95+
ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
96+
ls -la ./.git/hooks
97+
./.git/hooks/post-merge
98+
99+
- name: Create database
100+
run: |
101+
cp config/database.yml.github_actions config/database.yml
102+
bundle exec rake --version
103+
bundle exec rake db:create
104+
bundle exec rake db:migrate
105+
# fail build if db/schema.rb update is not committed
106+
git diff --exit-code db/schema.rb
107+
108+
- name: ${{ matrix.test_cmd }}
109+
run: |
110+
echo "${CMD}"
111+
bash -c "${CMD}"
112+
env:
113+
CMD: ${{ matrix.test_cmd }}

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ world -- a better place! Before you get started, please review our [Code of Con
55
## Code Free Contributions
66
Before we get into the details of contributing code, you should know there are multiple ways you can add to Metasploit without any coding experience:
77

8-
- You can [submit bugs and feature requests](https://github.com/rapid7/metasploit-framework/issues/new) with detailed information about your issue or idea:
8+
- You can [submit bugs and feature requests](https://github.com/rapid7/metasploit-framework/issues/new/choose) with detailed information about your issue or idea:
99
- If you'd like to propose a feature, describe what you'd like to see. Mock ups of console views would be great.
1010
- If you're reporting a bug, please be sure to include the expected behaviour, the observed behaviour, and steps to reproduce the problem. Resource scripts, console copy-pastes, and any background on the environment you encountered the bug in would be appreciated. More information can be found [below](#bug-reports).
1111
- [Help fellow users with open issues]. This can require technical knowledge, but you can also get involved in conversations about bug reports and feature requests. This is a great way to get involved without getting too overwhelmed!

0 commit comments

Comments
 (0)