Coder Social home page Coder Social logo

command-output's People

Contributors

cafuego avatar mathiasvr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

command-output's Issues

Fail on no output functionality

Hi, I forked your action to extend it with timeout on no output functionality. This is to provide a way to kill a step when the process hangs, goes into a deadlock etc. The timeout built in in GHA is relative to the start of step execution and I want a timeout relative to last activity. This is useful in long running steps. Let me know if you think it fits your idea for the action and if so I will be happy to open a PR

Preventing Github Actions value obfuscation

Hello, I'm outputting a large block of JSON text and some of the values seem to be interpreted as sensitive info and as a result, are being obfuscated. Is there a way to disable obfuscation and output the raw values?

"startTime": "2023-08-16T14:38:3***.862Z",
"line": 12***,

Add regex param to capture only a portion of stdout?

Thank you for creating this action, I'm using it right now in a workflow and it works great.

Perhaps a useful feature would be the ability to pass a regular expression that captures only a part of stdout / stderr into a third variable. For example, see my code below where I'm using two steps to accomplish this (workflow file here). It's not that bad, but it seems like there should be a better way.

- name: Create preview channel
  uses: mathiasvr/[email protected]
  id: create_preview
  with:
    run: firebase hosting:channel:create ${{ github.event.pull_request.number }}
  env:
      FIREBASE_CLI_EXPERIMENTS: webframeworks
      FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
  # Output should look like this:
  # 
  # +  hosting:channel: Channel <pr_number> has been created on site <project_id>.
  # +  hosting:channel: Channel <pr_number> will expire at <timestamp>.
  # +  hosting:channel: Channel URL: https://<project_id>--<pr_number>-<random_hash>.web.app
  # 
  # To deploy to this channel, use firebase hosting:channel:deploy <pr_number>.

- name: Get preview channel URL from stdout
  uses: mathiasvr/[email protected]
  id: preview_url
  with:
    run: echo '${{ steps.create_preview.outputs.stdout }}' | perl -ne 'print "$1\n" if /(https:\/\/[^\s]+\.web\.app)/'
  # Output: https://<project_id>--<pr_number>-<random_hash>.web.app

Run with `working-directory` not supported

when run with working-directory produce error. Working-directory is not supported.
Ex:
- name: MyStep
uses: mathiasvr/command-output@v1
with:
working-directory: someDir
run: echo "Should work"

produce: Warning: Unexpected input(s) 'working-directory', valid inputs are ['run', 'shell']

Reporting a vulnerability

Hello!

I hope you are doing well!

We are a security research team. Our tool automatically detected a vulnerability in this repository. We want to disclose it responsibly. GitHub has a feature called Private vulnerability reporting, which enables security research to privately disclose a vulnerability. Unfortunately, it is not enabled for this repository.

Can you enable it, so that we can report it?

Thanks in advance!

PS: you can read about how to enable private vulnerability reporting here: https://docs.github.com/en/code-security/security-advisories/repository-security-advisories/configuring-private-vulnerability-reporting-for-a-repository

An output that contains stdout and stderr (in order)

If a command outputs something like:

(stdout) Running test: foo
(stderr) test failed
(stdout) Running test: bar

The outputs are:

stdout

Running test: foo
Running test: bar

stderr

test failed

And you wouldn't know which test failed. Would it be possible to have a second output output that contains both stdout and stderr, in the correct order?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.