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.

1. Create a Secret

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.

2. Configure your Workflow

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.
1
name: Reshift Security Scan
2
3
on:
4
push:
5
branches: [ master ]
6
pull_request:
7
branches: [ master ]
8
9
jobs:
10
build:
11
12
runs-on: ubuntu-latest
13
14
steps:
15
- uses: actions/[email protected]
16
- name: Set up JDK 1.8
17
uses: actions/[email protected]
18
with:
19
java-version: 1.8
20
- name: Build with Maven
21
run: mvn [REPLACE THIS WITH MAVEN COMMAND FROM RESHIFT INTEGRATIONS PAGE]
Copied!
**add other scans pertaining to your language

3. Start a Commit

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 5mo ago