[vrotsc,vrotsc-annotations] (#336) Add Workflow Canvas Item for User Interaction Component #2476
Workflow file for this run
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: "CodeQL Java" | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: 'ubuntu-latest' | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Use Node.js '16.20.2' | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.20.2' | |
- name: Setup Maven Action | |
uses: s4u/[email protected] | |
with: | |
java-version: '21' | |
java-distribution: 'temurin' | |
maven-version: '3.9.2' | |
- name: Get Prev Released IAC version | |
run: echo "IAC_PREV_VERSION=$(mvn -U --batch-mode -N -q -DforceStdout help:evaluate -Dexpression=project.version -Dartifact=com.vmware.pscoe:iac:RELEASE)" >> $GITHUB_ENV | |
- name: Get version | |
run: echo "IAC_VERSION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout)" >> $GITHUB_ENV | |
- name: Replace variables in settings.xml | |
run: | | |
sed -i "s/{{ IAC_VERSION }}/${{ env.IAC_PREV_VERSION }}/g" .m2/settings.xml | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: java | |
- name: Cache Maven dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build 'keystore-example' | |
run: mvn -T 1C clean install -f common/keystore-example/pom.xml -s $PWD/.m2/settings.xml | |
- name: Build 'npmlib' | |
run: mvn -T 1C clean install -f maven/npmlib/pom.xml -s $PWD/.m2/settings.xml | |
- name: Build 'iac' | |
run: mvn -T 1C clean install -f pom.xml -s $PWD/.m2/settings.xml | |
- name: Build 'base-package' | |
run: mvn -T 1C clean install -f maven/base-package/pom.xml -s $PWD/.m2/settings.xml | |
- name: Build 'packages' | |
run: mvn -T 1C clean install -f packages/pom.xml -s $PWD/.m2/settings.xml | |
- name: Build 'typescript-project-all' | |
run: mvn -T 1C clean install -f maven/typescript-project-all/pom.xml -s $PWD/.m2/settings.xml | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |