fossas / fossas/fossa-action

Input required and not supplied: api-key

Open
#62 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
73
Forks
21
Avg merge
1d 21h
Merged PRs (30d)
4

Description

I have an organization secret `FOSSA_API_KEY`, but still get an error `Input required and not supplied: api-key`:
```
/home/runner/work/_actions/fossas/fossa-action/main/node_modules/@actions/core/lib/core.js:106
throw new Error(`Input required and not supplied: ${name}`);
^
Error: Input required and not supplied: api-key
```

Here is my action yaml:
```
name: FOSSA License Scanning

on:
push:
branches:
- main
- release-*
pull_request:
branches:
- main
- release-*

permissions:
contents: read
actions: read

jobs:
fossa-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Run FOSSA scan and upload build data
uses: fossas/fossa-action@main
with:
api-key: ${{ env.fossa_api_key }}
debug: true
```
Any suggestions?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.