jbangdev / jbang-action Goto Github PK
View Code? Open in Web Editor NEWDocker image and Github Action to run jbang scripts
Home Page: https://jbang.dev
License: MIT License
Docker image and Github Action to run jbang scripts
Home Page: https://jbang.dev
License: MIT License
Have a very basic workflow starting a JBang script but i cannot run it locally:
git clone [email protected]:grumpyf0x48/jbang-catalog.git
cd jbang-catalog
act
Fails with:
[ci-build/build] π³ docker run image=ghcr.io/jbangdev/jbang-action:0.85.1 platform= entrypoint=[] cmd=[]
| jbang Catalog.java
| /usr/bin/entrypoint: line 21: exec: jbang: not found
[ci-build/build] β Failure - compile scripts
Error: exit with `FAILURE`: 127
https://hub.docker.com/r/jbangdev/jbang-action/tags
The last tag is 0.106.1 release.
Can we have releases of the 0.108
The jbang-action right not run as root
user this prevents it from running many Kubenretes distributions like OpenShift.
Hi!
It seems that this repository doesn't have a license.
Having the following GH Action step:
- name: Index Catalog
uses: jbangdev/[email protected]
with:
script: https://github.com/quarkusio/quarkus-registry-descriptor/blob/master/index.java
args: --trust=https://github.com/quarkusio/quarkus-registry-descriptor/ . ./app/registry.json
Gives the following output:
Run jbangdev/[email protected]
/usr/bin/docker run --name d33d5e89bf3b5445b3a1f5add313179397_c2465f --label 3888d3 --workdir /github/workspace --rm -e INPUT_SCRIPT -e INPUT_ARGS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/quarkus-extension-catalog/quarkus-extension-catalog":"/github/workspace" 3888d3:3d5e89bf3b5445b3a1f5add313179397 "https://github.com/quarkusio/quarkus-registry-descriptor/blob/master/index.java" "--trust=https://github.com/quarkusio/quarkus-registry-descriptor/ . ./app/registry.json"
[jbang] https://github.com/quarkusio/quarkus-registry-descriptor/blob/master/index.java is not from a trusted source thus aborting.
If you trust the url to be safe to run are here a few suggestions:
Limited trust:
jbang --trust=https://github.com/quarkusio/quarkus-registry-descriptor/
Trust all subdomains:
jbang --trust=*.github.com
Trust all sources (WARNING! disables url protection):
jbang --trust="*"
For more control edit ~/.jbang/trusted-sources.json
[jbang] Run with --verbose for more details
See https://github.com/quarkusio/quarkus-extension-catalog/runs/743885705?check_suite_focus=true for more details (PS: I also noted that the step didn't fail the workflow, maybe open a new ticket for that?)
The build for the version 0.116.0
has failed and therefore, the image hasn't been pushed.
But some metadata has already been released and so they are picked up by dependabot.
And it creates pull request, which will lead to error.
We should probably have a version of the action that supports Java 17 now that it's the latest long term support release.
This probably means coming up with a new tagging scheme, something like jbangver-javaver
, eg 0.83.0-11
, 0.83.1-17
and a tag 0.83.1
that refers to one of those, for now it should probably remain 11.
https://github.com/marketplace/actions/java-scripting-w-jbang shows that the latest version is 0.16.1, when in fact it should be 0.23.0
At https://github.com/jbangdev/jbang-action/releases/tag/v0.116.0, there is a tag. This causes dependabot filing a pull request. Example: gi-ev/LNI#167
I get following output
/usr/bin/docker pull ghcr.io/jbangdev/jbang-action:0.116.0
Error response from daemon: manifest unknown
I checked https://github.com/jbangdev/jbang-action/releases, but there is no 0.116.0 release.
At https://github.com/orgs/jbangdev/packages/container/package/jbang-action, there is no package for 0.116.0.
Would it be possible to publish the release 0.116.0 also as package?
This issue provides visibility into Renovate updates and their statuses. Learn more
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
I have the following configuration:
- name: Index Catalog
uses: jbangdev/[email protected]
with:
script: indexcatalog@quarkusio
args: . ./app/registry.json
This is the error I get when Github runs it:
Run jbangdev/[email protected]
with:
script: indexcatalog@quarkusio
args: . ./app/registry.json
mkdir: cannot create directory β/github/home/.jbangβ: Permission denied
[jbang] java.lang.RuntimeException: Invalid alias name ''
[jbang] Run with --verbose for more details
It's a little hard to read this way becuase the indenting is not correct. I think this is the correct one:
on: [push]
jobs:
jbang:
runs-on: ubuntu-latest
name: A job to run jbang
steps:
- name: checkout
uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: /root/.jbang
key: ${{ runner.os }}-jbang-${{ hashFiles('*.java') }}
restore-keys: |
${{ runner.os }}-jbang-
- name: jbang
uses: maxandersen/[email protected]
with:
script: createissue.java
args: "my world"
env:
JBANG_REPO: /root/.jbang/repository
GITHUB_TOKEN: ${{ secrets.ISSUE_GITHUB_TOKEN }}
You probably should stop using TABs in files that indent-sensitive ;-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.