fix: gh action vulnerability #132
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SudoScan Develop CI | |
on: | |
push: | |
# Sequence of patterns matched against refs/heads | |
branches: | |
- 'develop' | |
- 'feature/**' | |
- 'hotfix/**' | |
- 'bugfix/**' | |
- 'release/**' | |
- 'support/**' | |
jobs: | |
gradle_dev_build: | |
name: Gradle Dev Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setting up JAVA | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' | |
java-version: 11 | |
- name: Running gradle task | |
uses: gradle/[email protected] | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONATYPE_USER: ${{ secrets.SONATYPE_USER }} | |
SONATYPE_PASS: ${{ secrets.SONATYPE_PASS }} | |
with: | |
gradle-version: wrapper | |
arguments: clean codeCoverageReport sonar publishAllPublicationsToSonatypeRepository |