You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have shifted all my Github Action(Pipeline) from 16 to 20 th version for Node, but I am facing warning only for PMD pipeline, Kindly help me to resolve this.
Pipeline code:
# Unique name for this workflowname: PMD Code Scan# Definition when the workflow should runon:
# The workflow will run whenever an event happens on a pull requestpull_request:
# The events are that a PR is opened, or when a commit is pushed# to a branch that has an existing pull requesttypes: [opened, synchronize]# The branches filter allows to specify that this workflow should only# run if the branch name is as listed below. This way we prevent this workflow# from running when PRs are opened on other branchesbranches: [ environment/*/dev , environment/qa ]# We only care about changes to the force-app directory, which is the# root directory of the sfdx project. This prevents the job from running# when changing non-salesforce files (like this yml file).paths:
- 'force-app/**'# Jobs to be executed when the above conditions are metjobs:
# This is the name of the job. You can give it whatever name you wantRun-PMD-Code-Scan:
# As mentioned in the blog post, this job runs inside a VM. Here we# can specify which OS this VM should run on. # In this case, we are going to run our commands on the latest version# of ubunturuns-on: ubuntu-latestpermissions:
contents: readpull-requests: write# required for all workflowssecurity-events: write# only required for workflows in private repositoriesactions: readif: ${{ github.actor != 'dependabot[bot]' }}steps:
# Now we install nodejs in the VM, and specify version 14
- uses: actions/setup-node@v4with:
node-version: '20'# The idea is that the VM can access your remote repository# because your repository is an sfdx project.# This is a default action that allows us to enter the root # directory of the repository# Make sure to specify fetch-depth:0. This allows us to# access previous commits that have been pushed to the repository.# We'll need this later when we try to figure out which metadata has # changed between commits, so that we can only deploy that metadata# to the destination org
- name: 'Checkout source code'uses: actions/checkout@v4with:
fetch-depth: 0# Run PMD Scan
- name: 'Run PMD Scan'uses: pmd/pmd-github-action@v1id: pmdwith:
sourcePath: 'force-app'rulesets: 'ruleset.xml'analyzeModifiedFilesOnly: truecreateGitHubAnnotations: true
- name: Fail build if there are violationsif: steps.pmd.outputs.violations != 0run: exit 1
Hi,
I have shifted all my Github Action(Pipeline) from 16 to 20 th version for Node, but I am facing warning only for PMD pipeline, Kindly help me to resolve this.
Pipeline code:
Warning:
Run-PMD-Code-Scan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pmd/pmd-github-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Thanks
The text was updated successfully, but these errors were encountered: