|
1 | | -name: Metasploit wrapups |
| 1 | +# name: Metasploit wrapups |
2 | 2 |
|
3 | | -on: |
4 | | - workflow_dispatch: |
5 | | - inputs: |
6 | | - startTag: |
7 | | - description: 'Start tag' |
8 | | - required: true |
9 | | - default: '6.0.20' |
10 | | - endTag: |
11 | | - description: 'End tag' |
12 | | - required: true |
13 | | - default: '6.0.21' |
14 | | - push: |
15 | | - branches-ignore: |
16 | | - - gh-pages |
17 | | - - metakitty |
18 | | - #schedule: |
19 | | - # - cron: '0 18 * * *' |
| 3 | +# on: |
| 4 | +# workflow_dispatch: |
| 5 | +# inputs: |
| 6 | +# startTag: |
| 7 | +# description: 'Start tag' |
| 8 | +# required: true |
| 9 | +# default: '6.0.20' |
| 10 | +# endTag: |
| 11 | +# description: 'End tag' |
| 12 | +# required: true |
| 13 | +# default: '6.0.21' |
| 14 | +# push: |
| 15 | +# branches-ignore: |
| 16 | +# - gh-pages |
| 17 | +# - metakitty |
| 18 | +# #schedule: |
| 19 | +# # - cron: '0 18 * * *' |
20 | 20 |
|
21 | | -jobs: |
22 | | - build: |
23 | | - runs-on: ubuntu-16.04 |
24 | | - timeout-minutes: 40 |
| 21 | +# jobs: |
| 22 | +# build: |
| 23 | +# runs-on: ubuntu-20.04 |
| 24 | +# timeout-minutes: 40 |
25 | 25 |
|
26 | | - services: |
27 | | - postgres: |
28 | | - image: postgres:9.6 |
29 | | - ports: ["5432:5432"] |
30 | | - env: |
31 | | - POSTGRES_USER: postgres |
32 | | - POSTGRES_PASSWORD: postgres |
33 | | - options: >- |
34 | | - --health-cmd pg_isready |
35 | | - --health-interval 10s |
36 | | - --health-timeout 5s |
37 | | - --health-retries 5 |
| 26 | +# services: |
| 27 | +# postgres: |
| 28 | +# image: postgres:9.6 |
| 29 | +# ports: ["5432:5432"] |
| 30 | +# env: |
| 31 | +# POSTGRES_USER: postgres |
| 32 | +# POSTGRES_PASSWORD: postgres |
| 33 | +# options: >- |
| 34 | +# --health-cmd pg_isready |
| 35 | +# --health-interval 10s |
| 36 | +# --health-timeout 5s |
| 37 | +# --health-retries 5 |
38 | 38 |
|
39 | | - strategy: |
40 | | - fail-fast: true |
41 | | - matrix: |
42 | | - ruby: |
43 | | - - 2.7 |
44 | | - info_cmd: |
45 | | - - >- |
46 | | - set -euxo pipefail; |
| 39 | +# strategy: |
| 40 | +# fail-fast: true |
| 41 | +# matrix: |
| 42 | +# ruby: |
| 43 | +# - 2.7 |
| 44 | +# info_cmd: |
| 45 | +# - >- |
| 46 | +# set -euxo pipefail; |
47 | 47 |
|
48 | | - cd metasploit-framework; |
49 | | - mkdir tmp; |
50 | | - bundle exec ./msfconsole --quiet --no-database --resource ../metasploit-info/resources/extract_module_info.rc --execute-command 'quit'; |
| 48 | +# cd metasploit-framework; |
| 49 | +# mkdir tmp; |
| 50 | +# bundle exec ./msfconsole --quiet --no-database --resource ../metasploit-info/resources/extract_module_info.rc --execute-command 'quit'; |
51 | 51 |
|
52 | | - cd ..; |
53 | | - cp ./metasploit-framework/tmp/module_metadata.json ./metasploit-info/info/module_metadata.json; |
| 52 | +# cd ..; |
| 53 | +# cp ./metasploit-framework/tmp/module_metadata.json ./metasploit-info/info/module_metadata.json; |
54 | 54 |
|
55 | | - env: |
56 | | - RAILS_ENV: test |
| 55 | +# env: |
| 56 | +# RAILS_ENV: test |
57 | 57 |
|
58 | | - name: Ruby ${{ matrix.ruby }} - ${{ matrix.test_cmd }} |
59 | | - steps: |
| 58 | +# name: Ruby ${{ matrix.ruby }} - ${{ matrix.test_cmd }} |
| 59 | +# steps: |
60 | 60 |
|
61 | | -# - name: Install system dependencies |
62 | | -# run: sudo apt-get install libpcap-dev graphviz |
63 | | -# |
64 | | - - name: Checkout code |
65 | | - uses: actions/checkout@v2 |
66 | | - with: |
67 | | - path: metasploit-info |
| 61 | +# # - name: Install system dependencies |
| 62 | +# # run: sudo apt-get install libpcap-dev graphviz |
| 63 | +# # |
| 64 | +# - name: Checkout code |
| 65 | +# uses: actions/checkout@v2 |
| 66 | +# with: |
| 67 | +# path: metasploit-info |
68 | 68 |
|
69 | | - - name: Generate change logs |
70 | | - run: | |
71 | | - echo "Release notes for ${{ github.event.inputs.startTag }} to ${{ github.event.inputs.endTag }}" > wrapup.html |
| 69 | +# - name: Generate change logs |
| 70 | +# run: | |
| 71 | +# echo "Release notes for ${{ github.event.inputs.startTag }} to ${{ github.event.inputs.endTag }}" > wrapup.html |
72 | 72 |
|
73 | | - - name: Upload Change log |
74 | | - uses: actions/upload-artifact@v2 |
75 | | - with: |
76 | | - name: wrapup-${{ github.event.inputs.startTag }}-to-${{ github.event.inputs.endTag }} |
77 | | - path: wrapup.html |
78 | | - retention-days: 1 |
79 | | -# |
80 | | -# - name: ${{ matrix.test_cmd }} |
81 | | -# run: | |
82 | | -# echo "${CMD}" |
83 | | -# bash -c "${cmd}" |
84 | | -# env: |
85 | | -# CMD: ${{ matrix.test_cmd }} |
86 | | -# |
87 | | -# - name: Checkout metasploit-framework code |
88 | | -# uses: actions/checkout@v2 |
89 | | -# with: |
90 | | -# repository: rapid7/metasploit-framework |
91 | | -# path: metasploit-framework |
92 | | -# |
93 | | -# - uses: actions/setup-ruby@v1 |
94 | | -# with: |
95 | | -# ruby-version: ${{ matrix.ruby }} |
96 | | -# |
97 | | -# - name: Setup bundler |
98 | | -# run: | |
99 | | -# gem install bundler |
100 | | -# |
101 | | -# - uses: actions/cache@v2 |
102 | | -# with: |
103 | | -# path: vendor/bundle |
104 | | -# key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} |
105 | | -# restore-keys: | |
106 | | -# ${{ runner.os }}-gems- |
107 | | -# |
108 | | -# - name: Bundle install |
109 | | -# run: | |
110 | | -# cd metasploit-framework |
111 | | -# bundle config path vendor/bundle |
112 | | -# bundle install --jobs 4 --retry 3 |
113 | | -# env: |
114 | | -# BUNDLER_WITHOUT: coverage development pcap |
115 | | -# |
116 | | -# - name: Create database |
117 | | -# run: | |
118 | | -# cd metasploit-framework |
119 | | -# cp config/database.yml.github_actions config/database.yml |
120 | | -# bundle exec rake --version |
121 | | -# bundle exec rake db:create |
122 | | -# bundle exec rake db:migrate |
123 | | -# # fail build if db/schema.rb update is not committed |
124 | | -# git diff --exit-code db/schema.rb |
125 | | -# |
126 | | -# - name: ${{ matrix.info_cmd }} |
127 | | -# run: | |
128 | | -# echo "${CMD}" |
129 | | -# bash -c "${CMD}" |
130 | | -# env: |
131 | | -# CMD: ${{ matrix.info_cmd }} |
132 | | -# |
133 | | -# - name: Commit |
134 | | -# uses: EndBug/add-and-commit@v6 |
135 | | -# with: |
136 | | -# add: './info' |
137 | | -# author_name: Metasploit Github Actions |
138 | | -# author_email: do-not-contact@example.com |
139 | | -# branch: master |
140 | | -# cwd: './metasploit-info' |
141 | | -# message: 'Update module information' |
142 | | -# signoff: false |
143 | | -# push: true |
144 | | -# token: ${{ secrets.GITHUB_TOKEN }} |
| 73 | +# - name: Upload Change log |
| 74 | +# uses: actions/upload-artifact@v2 |
| 75 | +# with: |
| 76 | +# name: wrapup-${{ github.event.inputs.startTag }}-to-${{ github.event.inputs.endTag }} |
| 77 | +# path: wrapup.html |
| 78 | +# retention-days: 1 |
| 79 | +# # |
| 80 | +# # - name: ${{ matrix.test_cmd }} |
| 81 | +# # run: | |
| 82 | +# # echo "${CMD}" |
| 83 | +# # bash -c "${cmd}" |
| 84 | +# # env: |
| 85 | +# # CMD: ${{ matrix.test_cmd }} |
| 86 | +# # |
| 87 | +# # - name: Checkout metasploit-framework code |
| 88 | +# # uses: actions/checkout@v2 |
| 89 | +# # with: |
| 90 | +# # repository: rapid7/metasploit-framework |
| 91 | +# # path: metasploit-framework |
| 92 | +# # |
| 93 | +# # - uses: actions/setup-ruby@v1 |
| 94 | +# # with: |
| 95 | +# # ruby-version: ${{ matrix.ruby }} |
| 96 | +# # |
| 97 | +# # - name: Setup bundler |
| 98 | +# # run: | |
| 99 | +# # gem install bundler |
| 100 | +# # |
| 101 | +# # - uses: actions/cache@v2 |
| 102 | +# # with: |
| 103 | +# # path: vendor/bundle |
| 104 | +# # key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} |
| 105 | +# # restore-keys: | |
| 106 | +# # ${{ runner.os }}-gems- |
| 107 | +# # |
| 108 | +# # - name: Bundle install |
| 109 | +# # run: | |
| 110 | +# # cd metasploit-framework |
| 111 | +# # bundle config path vendor/bundle |
| 112 | +# # bundle install --jobs 4 --retry 3 |
| 113 | +# # env: |
| 114 | +# # BUNDLER_WITHOUT: coverage development pcap |
| 115 | +# # |
| 116 | +# # - name: Create database |
| 117 | +# # run: | |
| 118 | +# # cd metasploit-framework |
| 119 | +# # cp config/database.yml.github_actions config/database.yml |
| 120 | +# # bundle exec rake --version |
| 121 | +# # bundle exec rake db:create |
| 122 | +# # bundle exec rake db:migrate |
| 123 | +# # # fail build if db/schema.rb update is not committed |
| 124 | +# # git diff --exit-code db/schema.rb |
| 125 | +# # |
| 126 | +# # - name: ${{ matrix.info_cmd }} |
| 127 | +# # run: | |
| 128 | +# # echo "${CMD}" |
| 129 | +# # bash -c "${CMD}" |
| 130 | +# # env: |
| 131 | +# # CMD: ${{ matrix.info_cmd }} |
| 132 | +# # |
| 133 | +# # - name: Commit |
| 134 | +# # uses: EndBug/add-and-commit@v6 |
| 135 | +# # with: |
| 136 | +# # add: './info' |
| 137 | +# # author_name: Metasploit Github Actions |
| 138 | +# # author_email: do-not-contact@example.com |
| 139 | +# # branch: master |
| 140 | +# # cwd: './metasploit-info' |
| 141 | +# # message: 'Update module information' |
| 142 | +# # signoff: false |
| 143 | +# # push: true |
| 144 | +# # token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments