Skip to content

Commit

Permalink
Merge pull request #56 from byu-oit/node20
Browse files Browse the repository at this point in the history
Use Node.js v20, bump deps, refer to Tyk
  • Loading branch information
GaryGSC authored Sep 26, 2024
2 parents 6ceff58 + c25bae8 commit 900f465
Show file tree
Hide file tree
Showing 9 changed files with 2,165 additions and 1,663 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ on:
- staging
- 'v*'
env:
node_version: "16.x"
node_version: "20.x"
FORCE_COLOR: 3

jobs:
build: # make sure build/ci work properly
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}

Expand All @@ -36,10 +36,10 @@ jobs:
name: Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}

Expand All @@ -52,10 +52,10 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
cache: npm
Expand All @@ -71,10 +71,10 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
cache: npm
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,35 +38,35 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
2 changes: 1 addition & 1 deletion .github/workflows/test-as-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Start Standard Change
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Start Standard Change
uses: ./
id: start-standard-change
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-as-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
test-as-step:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Start Standard Change
uses: ./
id: start-standard-change
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A GitHub Action for starting standard change RFCs in BYU's ServiceNow system

### Get the inputs

* Get an application in WSO2 that's subscribed to [ServiceNowTableAPI - v1](https://api.byu.edu/store/apis/info?name=ServiceNowTableAPI&version=v1&provider=BYU%2Fthirschi), [StandardChange - v1](https://api.byu.edu/store/apis/info?name=StandardChange&version=v1&provider=BYU%2Fdlb44), [Change_Request - v1](https://api.byu.edu/store/apis/info?name=Change_Request&version=v1&provider=BYU%2Fthirschi), and [Echo - v1](https://api.byu.edu/store/apis/info?name=Echo&version=v1&provider=BYU%2Fbcwinter)
* Get client credentials from Tyk
> In the `byu-oit` GitHub organization, we provide the following secrets to every repo:
> - `STANDARD_CHANGE_PRODUCTION_CLIENT_KEY`
> - `STANDARD_CHANGE_PRODUCTION_CLIENT_SECRET`
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: 'BYU ServiceNow - Start Standard Change RFC'
description: 'Creates a Standard Change RFC in BYUs ServiceNow system.'
inputs:
client-key:
description: 'The WSO2 Client Key to use when calling the ServiceNow API'
description: 'The Tyk Client Key to use when calling the ServiceNow API'
required: true
client-secret:
description: 'The WSO2 Client Secret to use when calling the ServiceNow API'
description: 'The Tyk Client Secret to use when calling the ServiceNow API'
required: true
template-id:
description: 'The alias or sys_id of the standard change template (32 chars).' # To get the sys_id, select an existing template in ServiceNow and it'll be in the URL between sys_id%3D and %26. Existing templates can be found here: https://it.byu.edu/nav_to.do?uri=%2Fu_standard_change_template_list.do
Expand All @@ -25,5 +25,5 @@ outputs:
work-start:
description: 'The date and time the task was started, in Utah time (Ex: "2020-05-14 17:17:39")'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
42 changes: 19 additions & 23 deletions dist/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit 900f465

Please sign in to comment.