Comment on page
GitHub Actions [Java]
Integrating Reshift with GitHub Actions for Java.
In GitHub, select the project you would like to integrate Reshift with. To create an action click 'actions' and set up the workflow with your language card.
First, create a secret in the GitHub 'settings' tab. Give the secret a name (
RESHIFT_TOKEN
for this example), and paste your scan token as the value.Add a
.yml
file to the base directory of your code repository to configure GitHub Actions to run Reshift scans. You're file should look like this. name: Reshift Security Scan
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn [REPLACE THIS WITH MAVEN COMMAND FROM RESHIFT INTEGRATIONS PAGE]
**add other scans pertaining to your language
Click 'start commit' to kick off the Reshift Scan. Results will be updated and reflected on your Reshift Dashboard.
If you have any more questions, please email us at [email protected]!
Last modified 2yr ago