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

Failed to find templates. #18

Closed
random-robbie opened this issue Jul 19, 2021 · 1 comment
Closed

Failed to find templates. #18

random-robbie opened this issue Jul 19, 2021 · 1 comment
Assignees

Comments

@random-robbie
Copy link

Does the action need updating?

pd-actions.yaml

      - name: Nuclei Scan
        uses: projectdiscovery/nuclei-action@main
        with:
          urls: output/active_urls.txt
          output: output/nuclei_output.txt
          

Github Log

Run projectdiscovery/nuclei-action@main
  with:
    urls: output/active_urls.txt
    output: output/nuclei_output.txt
    json: false
    include-rr: false
    github-report: false
  env:
    GOROOT: /opt/hostedtoolcache/go/1.14.15/x64
[FTL] Program exiting: no template/templates provided
@toufik-airane toufik-airane self-assigned this Jul 19, 2021
@toufik-airane
Copy link
Contributor

toufik-airane commented Jul 20, 2021

Dear @random-robbie,

You should run a checkout stage before running a nuclei action.
The checkout command enables working with files stored in the repository.

Here is an example of a full workflow:

jobs:
  nuclei-scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Nuclei Scan
        uses: projectdiscovery/nuclei-action@main
        with:
          urls: output/active_urls.txt
          output: output/nuclei_output.txt

      - name: GitHub Workflow artifacts
        uses: actions/upload-artifact@v2
        with:
          name: nuclei.log
          path: output/nuclei_output.txt

Feel free to ping me on Discord if you need any onboarding.

Best regards.

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

2 participants