Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using template input returns and outputs the value #2

Open
LeoColomb opened this issue Oct 25, 2021 · 0 comments
Open

Using template input returns and outputs the value #2

LeoColomb opened this issue Oct 25, 2021 · 0 comments

Comments

@LeoColomb
Copy link

This is an example of steps part of my SAST workflow for GitHub Actions.

    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Set up Helm
        uses: azure/[email protected]
      - name: Render chart
        run: helm template kubesec charts/app > app-template.yml
      - name: Run kubesec scanner
        uses: controlplaneio/[email protected]
        with:
          input: app-template.yml
          format: template
          template: '@/templates/sarif.tpl'
          output: kubesec-results.sarif
          exit-code: "0"
      - run: cat kubesec-results.sarif

Whatever is the value of template input (here '@/templates/sarif.tpl'), the step output and the output file if present both receive the value.

image

Of course, different values have been tried, like:

  • 'templates/sarif.tpl'
  • 'template/sarif.tpl'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant