Skip to content
Merged
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
50 changes: 50 additions & 0 deletions jwt-tool.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package:
name: jwt-tool
version: 2.2.6
epoch: 0
description: "toolkit for validating, forging, scanning and tampering JWTs"
copyright:
- license: GPL-3.0
dependencies:
runtime:
- python3

environment:
contents:
packages:
- python3
- py3-pip
- busybox

pipeline:
- uses: git-checkout
with:
repository: https://github.com/ticarpi/jwt_tool
tag: v${{package.version}}
expected-commit: 0950b91d34281246129a82b9a3153e41cd0aed40
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
1 change: 1 addition & 0 deletions packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -854,3 +854,4 @@ wit-bindgen
wasm-tools
corepack
esbuild
jwt-tool