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

Add github action to automate new framework submissions #23

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/nfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ title: "[NFS] "

necessary github issues or actions that need to get created/executed are as follows:

- [ ] video
- [ ] comparison points <!-- optional if new comparison points come with this new framework submission -->
- [ ] meta
- [ ] label <!-- repo maintainer required -->
- [ ] milestone <!-- repo maintainer required -->
- [ ] folder to organize in repo

Expand Down
8 changes: 7 additions & 1 deletion .github/ISSUE_TEMPLATE/video-sub.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,21 @@
name: Video Request
about: Request a video to be added
labels: video, enhancement
title: "[VIDEO] "
title: "[VIDEO] {{ framework_name }}"
---

<!-- please add the name of the c2 framework you are requesting this video for -->
#### C2 framework name

{{ framework_name }}

<!-- please put a url to the where the C2 framework can be found (i.e. website, github repo, etc...) or reference to your New Framework Submission issue to the url header -->
#### url

{{ issue_url }}


<!-- Add any other context about the problem here. -->
#### Additional context

{{ additional_context }}
17 changes: 17 additions & 0 deletions .github/workflows/nfs-automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: NFS Automation

on:
issues:
types: [opened]

jobs:
handle_new_issue:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Handle new issue
id: new-issue
uses: ./actions/nfs-automation
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions actions/nfs-automation/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
11 changes: 11 additions & 0 deletions actions/nfs-automation/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'NFS Automation'
description: 'NFS Automation for github.com/ProfessionallyEvil/C4'

inputs:
repo-token:
description: 'Github Authorisation Token'
required: true

runs:
using: 'node12'
main: 'dist/index.js'
Loading