3 Commits

Author SHA1 Message Date
Haritha 3299817c49 Update basic-validation.yml 2025-04-16 12:29:48 -05:00
Haritha 51471631b5 Fix test failure issue 2025-04-16 12:20:00 -05:00
HarithaVattikuti 3d73cee0ea Create dependabot.yml 2025-01-15 16:24:55 -06:00
6 changed files with 15 additions and 21 deletions
+4 -2
View File
@@ -24,7 +24,7 @@ on:
description: "Optional input to set the version of Node.js used to build the project. The input syntax corresponds to the setup-node's one" description: "Optional input to set the version of Node.js used to build the project. The input syntax corresponds to the setup-node's one"
required: false required: false
type: string type: string
default: "24.x" default: "20.x"
node-caching: node-caching:
description: "Optional input to set up caching for the setup-node action. The input syntax corresponds to the setup-node's one. Set to an empty string if caching isn't needed" description: "Optional input to set up caching for the setup-node action. The input syntax corresponds to the setup-node's one. Set to an empty string if caching isn't needed"
required: false required: false
@@ -40,7 +40,7 @@ jobs:
operating-systems: ${{fromJson(inputs.operating-systems)}} operating-systems: ${{fromJson(inputs.operating-systems)}}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v4
- name: Setup Node.js ${{inputs.node-version}} - name: Setup Node.js ${{inputs.node-version}}
uses: actions/setup-node@v4 uses: actions/setup-node@v4
@@ -62,6 +62,8 @@ jobs:
- name: Test - name: Test
run: npm test run: npm test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Audit packages - name: Audit packages
run: npm audit --audit-level=high run: npm audit --audit-level=high
+2 -2
View File
@@ -16,7 +16,7 @@ on:
description: "Optional input to set the version of Node.js used to build a project. The input syntax corresponds to the setup-node's one" description: "Optional input to set the version of Node.js used to build a project. The input syntax corresponds to the setup-node's one"
required: false required: false
type: string type: string
default: "24.x" default: "20.x"
node-caching: node-caching:
description: "Optional input to set up caching for the setup-node action. The input syntax corresponds to the setup-node's one. Set to an empty string if caching isn't needed" description: "Optional input to set up caching for the setup-node action. The input syntax corresponds to the setup-node's one. Set to an empty string if caching isn't needed"
required: false required: false
@@ -29,7 +29,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v4
- name: Setup Node.js ${{inputs.node-version}} - name: Setup Node.js ${{inputs.node-version}}
uses: actions/setup-node@v4 uses: actions/setup-node@v4
+4 -4
View File
@@ -37,11 +37,11 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v4 uses: github/codeql-action/init@v3
with: with:
languages: ${{matrix.language}} languages: ${{matrix.language}}
config-file: ${{inputs.codeql-cfg-path}} config-file: ${{inputs.codeql-cfg-path}}
@@ -50,7 +50,7 @@ jobs:
# If this step fails, configure a build command manually using build-command input. This command will be executed in the corresponding step. # If this step fails, configure a build command manually using build-command input. This command will be executed in the corresponding step.
- name: Autobuild - name: Autobuild
if: ${{!inputs.build-command}} if: ${{!inputs.build-command}}
uses: github/codeql-action/autobuild@v4 uses: github/codeql-action/autobuild@v3
- name: Manual build - name: Manual build
if: ${{inputs.build-command}} if: ${{inputs.build-command}}
@@ -58,4 +58,4 @@ jobs:
${{inputs.build-command}} ${{inputs.build-command}}
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4 uses: github/codeql-action/analyze@v3
+1 -1
View File
@@ -13,7 +13,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: npm ci --ignore-scripts run: npm ci --ignore-scripts
+3 -3
View File
@@ -32,13 +32,13 @@ jobs:
runs-on: "ubuntu-latest" runs-on: "ubuntu-latest"
steps: steps:
- name: Checkout ${{github.repository}} repository - name: Checkout ${{github.repository}} repository
uses: actions/checkout@v5 uses: actions/checkout@v4
with: with:
ref: "${{inputs.base-pr-branch}}" ref: "${{inputs.base-pr-branch}}"
path: "target" path: "target"
- name: Checkout actions/reusable-workflows repository - name: Checkout actions/reusable-workflows repository
uses: actions/checkout@v5 uses: actions/checkout@v4
with: with:
repository: "actions/reusable-workflows" repository: "actions/reusable-workflows"
ref: "main" ref: "main"
@@ -86,7 +86,7 @@ jobs:
if: ${{ steps.successful-update.outputs.STATUS == 'true' }} if: ${{ steps.successful-update.outputs.STATUS == 'true' }}
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 24 node-version: 20
- name: Install dependencies - name: Install dependencies
if: ${{ steps.successful-update.outputs.STATUS == 'true' }} if: ${{ steps.successful-update.outputs.STATUS == 'true' }}
-8
View File
@@ -74,15 +74,7 @@ basic-validation-call:
with: with:
enable-audit: false enable-audit: false
``` ```
## Recommended permissions
When using the `reusable-workflows` in your GitHub Actions workflow, it is recommended to set the following permissions to ensure proper functionality:
```yaml
permissions:
contents: read # access to read repository's content
actions: read # access to reading actions
```
## License ## License
The scripts and documentation in this project are released under the [MIT License](LICENSE.txt) The scripts and documentation in this project are released under the [MIT License](LICENSE.txt)