-
Notifications
You must be signed in to change notification settings - Fork 315
/
Copy pathexploitdb.yaml
43 lines (35 loc) · 1.25 KB
/
exploitdb.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package:
name: exploitdb
version: "2025.03.20"
epoch: 0
description: "the exploit database is an archive of public exploits and corresponding vulnerable software, developed for use by penetration testers and vulnerability researchers"
copyright:
- license: GPL-2.0-or-later
# transform melange version from YYYY.MM.DD to YYYY_MM_DD
var-transforms:
- from: ${{package.version}}
match: \.
replace: "-"
to: mangled-package-version
environment:
contents:
packages:
- git
- wolfi-base
pipeline:
- uses: git-checkout
with:
repository: https://gitlab.com/exploit-database/exploitdb.git
tag: ${{vars.mangled-package-version}}
expected-commit: 04fa5ba95dca9caf5528c27a0840391c671908f2
destination: exploitdb
- runs: |
mkdir -p "${{targets.destdir}}"/usr/share/app/exploitdb && mkdir -p "${{targets.destdir}}"/usr/bin
mv exploitdb/* exploitdb/.searchsploit_rc "${{targets.destdir}}"/usr/share/app/exploitdb
sed -i 's/\/opt\/exploitdb/\/usr\/share\/app\/exploitdb/g' "${{targets.destdir}}"/usr/share/app/exploitdb/.searchsploit_rc
ln -sf /usr/share/app/exploitdb/searchsploit "${{targets.destdir}}"/usr/bin
- uses: strip
update:
version-separator: "-"
enabled: true
git: {}