Skip to content

Commit

Permalink
Preparing ymls to keeper integration #TASK-6187
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfeSanahuja committed Jun 11, 2024
1 parent d2fd1df commit f3228e3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ jobs:
runs-on: ubuntu-22.04
if: ${{ inputs.sonar }}
steps:
- name: Retrieve secrets from Keeper
id: ksecrets
uses: Keeper-Security/ksm-action@master
with:
keeper-secret-config: ${{ secrets.KEEPER_SM_GH_OPENCB }}
secrets: |
ID_GITHUB_TOKEN/custom_field/GITHUB_TOKEN > env:GITHUB_TOKEN
ID_SONAR_TOKEN/custom_field/SONAR_TOKEN > env:SONAR_TOKEN
- uses: actions/checkout@v4
with:
fetch-depth: '0'
Expand All @@ -55,8 +63,8 @@ jobs:
fi
- name: Test and Analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ env.SONAR_TOKEN }}
run: mvn -T 2 clean install -P ${{ inputs.hadoop }},${{ inputs.test_profile }} -DskipTests -Dcheckstyle.skip org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=opencb_opencga

test:
Expand Down

0 comments on commit f3228e3

Please sign in to comment.