Skip to content

Commit

Permalink
Merge pull request #240 from stackhawk/bugfix/removing-deprecated-v1-…
Browse files Browse the repository at this point in the history
…opts

Removing Deprecated V1 options
  • Loading branch information
Bwvolleyball authored Jan 26, 2024
2 parents 0323e01 + cc1d13b commit e11ccfe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ jobs:
githubToken: ${{ github.token }}
configurationFiles: __tests__/stackhawk.yml
codeScanningAlerts: true
version: 3.3.0
verbose: true
debug: true

Expand Down
35 changes: 1 addition & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,39 +191,6 @@ jobs:
version: 2.7.0
```

## Deprecated options (version 1)

### `environmentVariables`

**Optional** A list of environment variable to pass to HawkScan. Environment variables can be separated with spaces, commas, or newlines.

For example:
```yaml
jobs:
stackhawk-hawkscan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: stackhawk/hawkscan-action@v1.3.4
with:
apiKey: ${{ secrets.HAWK_API_KEY }}
environmentVariables: APP_HOST APP_ENV
env:
APP_HOST: http://example.com
APP_ENV: Pre-Production
```

### `network`

**Optional** Docker network settings for running HawkScan. Defaults to `host`.

The following options for `network` are available:
- **`host`** (default): Use Docker host networking mode. HawkScan will run with full access to the GitHub virtual environment hosts network stack. This works in most cases if your scan target is a remote URL or a localhost address.
- **`bridge`**: Use the default Docker bridge network setting for running the HawkScan container. This works in most cases if your scan target is a remote URL or a localhost address.
- **`NETWORK`**: Use the user-defined Docker bridge network, `NETWORK`. This network may be created with `docker network create`, or `docker-compose`. This is appropriate for scanning other containers running locally on the GitHub virtual environment within a named Docker network.

See the [Docker documentation](https://docs.docker.com/engine/reference/run/#network-settings) for more details on Docker network settings.

## Examples

The following example shows how to run HawkScan with a StackHawk platform API key stored as a GitHub Actions secret environment variable, `HAWK_API_KEY`. In this workflow, GitHub Actions will checkout your repository, build your Python app, and run it. It then uses the HawkScan Action to run HawkScan with the given API key. HawkScan automatically finds the `stackhawk.yml` configuration file at the root of your repository and runs a scan based on that configuration.
Expand Down Expand Up @@ -299,4 +266,4 @@ Due to the nature of powershell and how we call java, this defect may not fail a

## Need Help?

If you have questions or need some help, please email us at support@stackhawk.com.
If you have questions or need some help, please email us at support@stackhawk.com.

0 comments on commit e11ccfe

Please sign in to comment.