This script will generate HTML reports for based on Taiga issues for a given Taiga project.
Install the following software on your local computer.
- Git: https://git-scm.com/
- Node.JS / NPM: https://nodejs.org/en
- jq for Windows: https://stedolan.github.io/jq/download/
- jq for Linux:
apt install jq
- rename the jq-win64.exe binary to jq.exe
- move jq.exe to C:\Program Files\Git\usr\bin
- Open a Git Bash terminal window.
- Change directory to your Documents or other directory of your choosing:
cd Documents
- Clone the acep-infosec-reports
git clone [email protected]:jehaverlack/acep-infosec-reports.git
- Install NPM Dependancies
cd acep-infosec-reports
npm install
- copy input/api-credentials-example.json to input/api-credentials.json
- edit input/api-credentials.json with your Taiga Username and Password
Get the URL from your TAIGA Project issues, e.g.:
https://tree.taiga.io/project/jehaverlack-acep-haverlack/issues?order_by=-modified_date
The Taiga SLUG in the above URL is: jehaverlack-acep-haverlack
In your Taiga Project create a new ticket. The description of this ticket will be used to populate the top of the report to highlight any specific points of interest. You'll need the Issue Number for this issue in the report config as follows.
Update Custom values for the Report:
- REPORT > TAIGA_SLUG
- REPORT > ORGANIZATION
- REPORT > CONTEXT
- REPORT > PERIOD
- REPORT > PERIOD_DAYS
- REPORT > HEADER_ISSUE_NO
{
"DIRS": {
"INPUT_DIR":"DIRNAME/input",
...
"REPORT_DIR":"DIRNAME/reports"
},
"FILES": {
"INPUT_CSV":"INPUT_DIR/issues-acep-infosec.csv",
...
"HTML_FOOTER":"INPUT_DIR/foot.html"
},
"REPORT":{
"ORGANIZATION":"ACEP InfoSec",
"LOGO":"INPUT_DIR/acep.png",
"CONTEXT":"Cybersecurity",
"PERIOD":"Weekly",
"PERIOD_DAYS": 7,
"COLLAPSE_STATUSES": false,
"TAIGA_SLUG":"jehaverlack-acep-haverlack",
"TAIGA_URL":"https://tree.taiga.io/project/TAIGA_SLUG/issues",
"TAIGA_TICKET_BASE_URL":"https://tree.taiga.io/project/TAIGA_SLUG/issue/",
"TAIGA_API_URL":"https://api.taiga.io/api/v1/",
"HEADER_ISSUE_NO":"40",
"CONTACT_EMAIL":"[email protected]"
},
- Goto the Header Issue for your Taiga Report
- Update the ACEP Report Header Description with updated information for this weeks report.
- Goto your Taiga Project
- Goto: Settings > Project > Reports
- Regenerate the Issues Report
-
- Open a Git Bash terminal window.
- Change directory to your acep-infosec-reports directory
cd Documents/acep-infosec-reports
- Run the gen_report.sh script.
./gen_report.sh
By default the Report Period is Weekly. You can customize this by passing a different config that the default.
./gen_report.sh input/biweekly-config.json
./gen_report.sh input/monthly-config.json
- Point your browser to:
- file:///HOME_DIR/Documents/acep-infosec-reports/reports
- Click on the latest report HTML file.
- Copy the HTML content of the report and paste in the Email message.
- Attache the PDF version of the report.
- Copy the Report Subject, e.g.: ACEP: 2023-04-07 Weekly Report