Skip to content

Commit 0ecf604

Browse files
AodhanLPryasmi
andauthored
ci(WhiteSource): Add action to automate WhiteSource scanning of releases [CICD-86] (#852)
Co-authored-by: Ryan Smith <3045513+ryansmith94@users.noreply.github.com>
1 parent 60451f5 commit 0ecf604

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/wss.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Whitesource
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
env:
8+
PARAM_REPO: xapi-service
9+
PARAM_SERVICE: xapiservice
10+
11+
jobs:
12+
curl:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Set output
16+
id: vars
17+
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
18+
- name: Call Jenkins Job
19+
env:
20+
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
21+
run: curl --location --request POST 'https://${{ secrets.JENKINS_USERNAME }}:${{ secrets.JENKINS_TOKEN }}@jenkins.learningpool.com/view/WSS/job/WSS-Scan/buildWithParameters?reponame=${{ env.PARAM_REPO }}&service=${{ env.PARAM_SERVICE }}&tagname=${{ env.RELEASE_VERSION }}'

0 commit comments

Comments
 (0)