Skip to content

Commit 170bfc8

Browse files
authored
Merge pull request #5 from fzipi/add-goreleaser
feat(goreleaser): add config and actions
2 parents c6735d9 + a564679 commit 170bfc8

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
-
18+
name: Set up Go
19+
uses: actions/setup-go@v2
20+
with:
21+
go-version: 1.15
22+
-
23+
name: Run GoReleaser
24+
uses: goreleaser/goreleaser-action@v2
25+
if: startsWith(github.ref, 'refs/tags/')
26+
with:
27+
version: latest
28+
args: release --rm-dist
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+

.goreleaser.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# This is an example .goreleaser.yml file with some sane defaults.
2+
# Make sure to check the documentation at http://goreleaser.com
3+
project_name: ftw
4+
before:
5+
hooks:
6+
# You may remove this if you don't use go modules.
7+
- go mod download
8+
builds:
9+
- id: "ftw"
10+
env:
11+
- GO111MODULE=on
12+
- CGO_ENABLED=0
13+
binary: ftw
14+
goos:
15+
- linux
16+
- darwin
17+
goarch:
18+
- amd64
19+
archives:
20+
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
21+
replacements:
22+
darwin: Darwin
23+
linux: Linux
24+
windows: Windows
25+
386: i386
26+
amd64: x86_64
27+
checksum:
28+
name_template: '{{ .ProjectName }}-checksums.txt'
29+
snapshot:
30+
name_template: "{{ .Tag }}-next"
31+
changelog:
32+
sort: asc
33+
filters:
34+
exclude:
35+
- '^docs'
36+
- '^test'
37+
38+
nfpms:
39+
- id: "ftw"
40+
builds: ["ftw"]
41+
formats:
42+
- deb
43+
- rpm
44+
bindir: /usr/bin
45+
overrides:
46+
rpm:
47+
replacements:
48+
amd64: x86_64
49+
file_name_template: "{{ .ProjectName }}-{{ .Version }}.{{ .Arch }}"
50+
deb:
51+
file_name_template: "{{ .ProjectName }}-{{ .Version }}_{{ .Arch }}"
52+
vendor:
53+
homepage: https://github.com/fzipi/go-ftw
54+
maintainer: [email protected]
55+
description:
56+
Framework for Testing WAFs - Go version
57+
58+
It uses the OWASP Core Ruleset V3 as a baseline to test rules on a WAF. Each rule from the ruleset is loaded into a YAML file that issues HTTP requests that will trigger these rules. Users can verify the execution of the rule after the tests are issued to make sure the expected response is received from an attack
59+
license: APL2
60+
61+

0 commit comments

Comments
 (0)