updated action to run on more conditions

This commit is contained in:
Philip Ellis
2024-02-01 12:58:24 -06:00
parent cb747f8397
commit bd07f0ceb6
8 changed files with 29413 additions and 18783 deletions

View File

@@ -26,23 +26,82 @@ jobs:
run: |
npm install -g swagger-cli
npm install -g openapi-to-postmanv2
- name: Dereference API Specification and build Postman collection
run: |
swagger-cli bundle --dereference idn/sailpoint-api.v3.yaml -t yaml -o dereferenced/deref-sailpoint-api.v3.yaml
openapi2postmanv2 -s dereferenced/deref-sailpoint-api.v3.yaml -o postman/collections/sailpoint-api-v3.json -p -c postman-script/openapi2postman-config.json
node postman-script/modify-collection.js postman/collections/sailpoint-api-v3.json
swagger-cli bundle --dereference idn/sailpoint-api.beta.yaml -t yaml -o dereferenced/deref-sailpoint-api.beta.yaml
openapi2postmanv2 -s dereferenced/deref-sailpoint-api.beta.yaml -o postman/collections/sailpoint-api-beta.json -p -c postman-script/openapi2postman-config.json
node postman-script/modify-collection.js postman/collections/sailpoint-api-beta.json
swagger-cli bundle --dereference nerm/openapi.yaml -t yaml -o dereferenced/deref-sailpoint-api.nerm.yaml
openapi2postmanv2 -s dereferenced/deref-sailpoint-api.nerm.yaml -o postman/collections/sailpoint-api-nerm.json -p -c postman-script/openapi2postman-config.json
swagger-cli bundle --dereference idn/sailpoint-api.v3.yaml -t json -o dereferenced/deref-sailpoint-api.v3.json
swagger-cli bundle --dereference idn/sailpoint-api.beta.yaml -t json -o dereferenced/deref-sailpoint-api.beta.json
- uses: stefanzweifel/git-auto-commit-action@v4
push_v3_specs_to_postman:
runs-on: ubuntu-latest
if: |
github.event.head_commit.modified.* == 'idn/sailpoint-api.v3.yaml' ||
github.event.head_commit.modified.* == 'idn/v3/**' ||
github.event.head_commit.added.* == 'idn/v3/**'
needs: [dereference_spec]
steps:
- name: Checkout PR branch
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Dereference API Specification and build Postman collection
run: |
echo POSTMAN_API_KEY="${{ secrets.POSTMAN_API_KEY }}" > .env
cd postman-script/updateByFolder
npm ci
cd ../../
swagger-cli bundle --dereference idn/sailpoint-api.v3.yaml -t yaml -o dereferenced/deref-sailpoint-api.v3.yaml
openapi2postmanv2 -s dereferenced/deref-sailpoint-api.v3.yaml -o postman/collections/sailpoint-api-v3.json -p -c postman-script/openapi2postman-config.json
node postman-script/modify-collection.js postman/collections/sailpoint-api-v3.json
node postman-script/updateByFolder/index.js v3
swagger-cli bundle --dereference idn/sailpoint-api.beta.yaml -t yaml -o dereferenced/deref-sailpoint-api.beta.yaml
openapi2postmanv2 -s dereferenced/deref-sailpoint-api.beta.yaml -o postman/collections/sailpoint-api-beta.json -p -c postman-script/openapi2postman-config.json
node postman-script/modify-collection.js postman/collections/sailpoint-api-beta.json
push_beta_specs_to_postman:
runs-on: ubuntu-latest
if: |
github.event.head_commit.modified.* == 'idn/sailpoint-api.beta.yaml' ||
github.event.head_commit.modified.* == 'idn/beta/**' ||
github.event.head_commit.added.* == 'idn/beta/**'
needs: [dereference_spec]
steps:
- name: Checkout PR branch
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Dereference API Specification and build Postman collection
run: |
echo POSTMAN_API_KEY="${{ secrets.POSTMAN_API_KEY }}" > .env
cd postman-script/updateByFolder
npm ci
cd ../../
node postman-script/updateByFolder/index.js beta
swagger-cli bundle --dereference nerm/openapi.yaml -t yaml -o dereferenced/deref-sailpoint-api.nerm.yaml
openapi2postmanv2 -s dereferenced/deref-sailpoint-api.nerm.yaml -o postman/collections/sailpoint-api-nerm.json -p -c postman-script/openapi2postman-config.json
push_nerm_specs_to_postman:
runs-on: ubuntu-latest
if: |
github.event.head_commit.modified.* == 'nerm/**' ||
github.event.head_commit.added.* == 'nerm/**'
needs: [dereference_spec]
steps:
- name: Checkout PR branch
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Dereference API Specification and build Postman collection
run: |
echo POSTMAN_API_KEY="${{ secrets.POSTMAN_API_KEY }}" > .env
cd postman-script/updateByFolder
npm ci
cd ../../
node postman-script/updateByFolder/index.js nerm
swagger-cli bundle --dereference idn/sailpoint-api.v3.yaml -t json -o dereferenced/deref-sailpoint-api.v3.json
swagger-cli bundle --dereference idn/sailpoint-api.beta.yaml -t json -o dereferenced/deref-sailpoint-api.beta.json
- uses: stefanzweifel/git-auto-commit-action@v4

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -96,6 +96,11 @@ tags:
They can use the My Requests tab under Request Center to track and/or cancel the requests.
Refer to [Requesting Access](https://documentation.sailpoint.com/saas/user-help/requests/requesting_access.html) for more information about access requests.
- name: Account Usages
description: |
Use this API to implement account usage insight functionality.
With this functionality in place, administrators can gather information and insights about how their tenants' source accounts are being used.
This allows organizations to get the information they need to start optimizing and securing source account usage.
- name: Accounts
description: |
Use this API to implement and customize account functionality.
@@ -162,6 +167,11 @@ tags:
Refer to [Account Activity](https://documentation.sailpoint.com/saas/help/search/index.html#account-activity) for more information about account activities.
- name: Auth User
description: Authentication service user retrieval and user capabilities update
- name: Branding
description: |
Use this API to implement and customize branding functionality.
With this functionality in place, administrators can get list of existing branding items, create new branding and configure them for use throughout IdentityNow.
It allows to customise color of navigation bar, action buttons, logo and emailFromAddress.
- name: Certification Campaigns
description: |
Use this API to implement certification campaign functionality.
@@ -748,6 +758,11 @@ tags:
This second option is a good way to prevent SOD violations from triggering at all.
Refer to [Handling Policy Violations](https://documentation.sailpoint.com/saas/help/sod/policy-violations.html) for more information about SOD policy violations.
- name: Source Usages
description: |
Use this API to implement source usage insight functionality.
With this functionality in place, administrators can gather information and insights about how their tenants' sources are being used.
This allows organizations to get the information they need to start optimizing and securing source usage.
- name: Sources
description: |
Use this API to implement and customize source functionality.
@@ -886,21 +901,6 @@ tags:
When they complete the work item, they can select 'Mark Complete' to add it to their list of completed work items.
Refer to [Task Manager](https://documentation.sailpoint.com/saas/user-help/task_manager.html) for more information about work items, including the different types of work items users may need to complete.
- name: Source Usages
description: |
Use this API to implement source usage insight functionality.
With this functionality in place, administrators can gather information and insights about how their tenants' sources are being used.
This allows organizations to get the information they need to start optimizing and securing source usage.
- name: Account Usages
description: |
Use this API to implement account usage insight functionality.
With this functionality in place, administrators can gather information and insights about how their tenants' source accounts are being used.
This allows organizations to get the information they need to start optimizing and securing source account usage.
- name: Branding
description: |
Use this API to implement and customize branding functionality.
With this functionality in place, administrators can get list of existing branding items, create new branding and configure them for use throughout IdentityNow.
It allows to customise color of navigation bar, action buttons, logo and emailFromAddress.
paths:
/access-profiles:
get:

View File

@@ -33,7 +33,7 @@ const release = async () => {
privateRemoteCollectionIdUid = postmanCollections[args[2].toLowerCase() + 'Uid']
mainPublicCollectionId = postmanCollections[args[2].toLowerCase() + 'Public']
localCollection = JSON.parse(fs.readFileSync(postmanCollections[args[2].toLowerCase() + 'Location'], 'utf8'))
SpecCollection = JSON.parse(fs.readFileSync(postmanCollections[args[2].toLowerCase() + 'SpecLocation'], 'utf8'))
//SpecCollection = JSON.parse(fs.readFileSync(postmanCollections[args[2].toLowerCase() + 'SpecLocation'], 'utf8'))
let remoteCollection = await refreshRemoteCollection(privateRemoteCollectionId)

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long