forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jwt-tool.yaml
56 lines (45 loc) · 1.3 KB
/
jwt-tool.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
44
45
46
47
48
49
50
51
52
53
54
55
56
package:
name: jwt-tool
version: 2.2.7
epoch: 0
description: "toolkit for validating, forging, scanning and tampering JWTs"
copyright:
- license: GPL-3.0-or-later
dependencies:
runtime:
- python3
environment:
contents:
packages:
- busybox
- py3-pip
- python3
pipeline:
- uses: git-checkout
with:
repository: https://github.com/ticarpi/jwt_tool
tag: v${{package.version}}
expected-commit: e4f380fea78630b87f9e54369b33a3ea645ea45f
destination: jwt-tool
- runs: |
mkdir -p "${{targets.destdir}}"/usr/share/app/jwt-tool && mkdir -p "${{targets.destdir}}"/usr/bin
mv jwt-tool/* "${{targets.destdir}}"/usr/share/app/jwt-tool
cd "${{targets.destdir}}"/usr/share/app/jwt-tool
python -m venv .venv
.venv/bin/pip install --no-cache-dir -r requirements.txt
JWT_TOOL_PYTHON_PATH="#!/usr/share/app/jwt-tool/.venv/bin/python"
sed -i "1s,.*,$JWT_TOOL_PYTHON_PATH," jwt_tool.py
rm -r Dockerfile LICENSE README.md
chmod +x jwt_tool.py
ln -s /usr/share/app/jwt-tool/jwt_tool.py "${{targets.destdir}}"/usr/bin/jwt-tool
- uses: strip
update:
enabled: true
github:
strip-prefix: v
identifier: ticarpi/jwt_tool
test:
pipeline:
# AUTOGENERATED
- runs: |
jwt-tool --help