Skip to content

Commit

Permalink
Screaming snake cases the examples in the readme (as other github act… (
Browse files Browse the repository at this point in the history
#58)

Co-authored-by: Pieter Oliver <pieter.oliver@nourishcare.com>
  • Loading branch information
csasarak and pieterocp authored Jan 22, 2025
1 parent 52ed424 commit 93a52ec
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@v3
- uses: fossas/fossa-action@main # Use a specific version if locking is preferred
with:
api-key: ${{secrets.fossaApiKey}}
api-key: ${{secrets.FOSSA_API_KEY}}
```
### `run-tests`
Expand All @@ -57,7 +57,7 @@ jobs:
- uses: actions/checkout@v3
- uses: fossas/fossa-action@main # Use a specific version if locking is preferred
with:
api-key: ${{secrets.fossaApiKey}}
api-key: ${{secrets.FOSSA_API_KEY}}
run-tests: true
```

Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
- uses: actions/checkout@v3
- uses: fossas/fossa-action@main # Use a specific version if locking is preferred
with:
api-key: ${{secrets.fossaApiKey}}
api-key: ${{secrets.FOSSA_API_KEY}}
run-tests: ${{ github.event_name == 'pull_request' }}
test-diff-revision: ${{ github.event.pull_request.base.sha }}
Expand All @@ -119,7 +119,7 @@ jobs:
- uses: actions/checkout@v3
- uses: fossas/fossa-action@main # Use a specific version if locking is preferred
with:
api-key: ${{secrets.fossaApiKey}}
api-key: ${{secrets.FOSSA_API_KEY}}
container: ubuntu:20.04
```

Expand All @@ -136,7 +136,7 @@ jobs:
- uses: actions/checkout@v3
- uses: fossas/fossa-action@main # Use a specific version if locking is preferred
with:
api-key: ${{secrets.fossaApiKey}}
api-key: ${{secrets.FOSSA_API_KEY}}
branch: some-feature-branch
```

Expand All @@ -153,7 +153,7 @@ jobs:
- uses: actions/checkout@v3
- uses: fossas/fossa-action@main # Use a specific version if locking is preferred
with:
api-key: ${{secrets.fossaApiKey}}
api-key: ${{secrets.FOSSA_API_KEY}}
project: some-project-name
```

Expand All @@ -170,7 +170,7 @@ jobs:
- uses: actions/checkout@v3
- uses: fossas/fossa-action@main # Use a specific version if locking is preferred
with:
api-key: ${{secrets.fossaApiKey}}
api-key: ${{secrets.FOSSA_API_KEY}}
endpoint: fossa.my-company.com
```

Expand All @@ -188,7 +188,7 @@ jobs:
- uses: actions/checkout@v3
- uses: fossas/fossa-action@main
with:
api-key: ${{secrets.fossaApiKey}}
api-key: ${{secrets.FOSSA_API_KEY}}
debug: true
- uses: actions/upload-artifact@v3
with:
Expand All @@ -198,7 +198,7 @@ jobs:


## Examples
We've provided a few examples of how to use FOSSA's Github Action in your own project. These examples use an API key stored as a Github secret environment variable `fossaAPiKey`.
We've provided a few examples of how to use FOSSA's Github Action in your own project. These examples use an API key stored as a Github secret environment variable `FOSSA_API_KEY`.

### Running a scan
This runs a basic FOSSA scan using FOSSA CLI on a your checked out project.
Expand All @@ -211,7 +211,7 @@ jobs:
- uses: actions/checkout@v3
- uses: fossas/fossa-action@main # Use a specific version if locking is preferred
with:
api-key: ${{secrets.fossaApiKey}}
api-key: ${{secrets.FOSSA_API_KEY}}
```

### Running tests
Expand All @@ -228,13 +228,13 @@ jobs:
- name: "Run FOSSA Scan"
uses: fossas/fossa-action@main # Use a specific version if locking is preferred
with:
api-key: ${{secrets.fossaApiKey}}
api-key: ${{secrets.FOSSA_API_KEY}}
config: ./config/.fossa.yml # Use a config file not in the base working directory
- name: "Run FOSSA Test"
uses: fossas/fossa-action@main # Use a specific version if locking is preferred
with:
api-key: ${{secrets.fossaApiKey}}
api-key: ${{secrets.FOSSA_API_KEY}}
run-tests: true
config: ./config/.fossa.yml
```
Expand All @@ -253,13 +253,13 @@ jobs:
- name: "Run FOSSA Scan"
uses: fossas/fossa-action@main # Use a specific version if locking is preferred
with:
api-key: ${{secrets.fossaApiKey}}
api-key: ${{secrets.FOSSA_API_KEY}}
container: ubuntu:20.04
- name: "Run FOSSA Test"
uses: fossas/fossa-action@main # Use a specific version if locking is preferred
with:
api-key: ${{secrets.fossaApiKey}}
api-key: ${{secrets.FOSSA_API_KEY}}
container: ubuntu:20.04
run-tests: true
```

0 comments on commit 93a52ec

Please sign in to comment.