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

Stackhawk #1325

Merged
merged 6 commits into from
Feb 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,30 @@ jobs:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ANALYTICS_KEY: ${{ secrets.ANALYTICS_KEY }}

stackhawk:
name: HawkScan
runs-on: ubuntu-latest
needs: release
services:
flipt:
image: flipt/flipt:nightly # <-- this is the image name from the previous job
ports:
- 8080:8080

steps:
- uses: actions/checkout@v3

- name: Download OpenAPI Spec
run: |
curl -s -o openapi.yml https://raw.githubusercontent.com/flipt-io/flipt-openapi/main/openapi.yml

- name: Update HawkScan Configuration
uses: mikefarah/yq@master
with:
cmd: yq -i '.app.env = "Nightly"' stackhawk.yml

- name: Run HawkScan
uses: stackhawk/hawkscan-action@v2.0.1
with:
apiKey: ${{ secrets.HAWK_API_KEY }}
18 changes: 18 additions & 0 deletions stackhawk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# -- stackhawk configuration for Flipt --
app:
applicationId: 5ee57432-1f9f-44fb-9e65-c17c65a4ade6 # (required)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I take it this is not that sensitive?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

na it isnt

env: Development # (required)
host: http://localhost:8080 # (required)
openApiConf:
filePath: openapi.yml # (required)

# -- Customized Configuration for GraphQL/SOAP/OpenAPI, add here --
# Configuration Docs: https://docs.stackhawk.com/hawkscan/configuration/

# -- If Authenticated Scanning is needed, add here --
# Authenticated Scanning Docs: https://docs.stackhawk.com/hawkscan/authenticated-scanning.html
# Authenticated Scanning Repo: https://github.com/kaakaww/scan-configuration/tree/main/Authentication

# -- Help Section --
# Docs: https://docs.stackhawk.com/
# Contact Support: support@stackhawk.com