Skip to content

Commit

Permalink
test: pin security center path to version (v1) (#3744)
Browse files Browse the repository at this point in the history
  • Loading branch information
subfuzion authored Jul 18, 2024
1 parent 9aaca6e commit e1a8b22
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/security-center-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,19 @@ on:
branches:
- main
paths:
- 'security-center/snippets/**'
- 'security-center/snippets/v1/**'
- 'security-center/snippets/package.json'
- '.github/workflows/security-center-snippets.yaml'
pull_request:
paths:
- 'security-center/snippets/**'
- 'security-center/snippets/v1/**'
- 'security-center/snippets/package.json'
- '.github/workflows/security-center-snippets.yaml'
pull_request_target:
types: [labeled]
paths:
- 'security-center/snippets/**'
- 'security-center/snippets/v1/**'
- 'security-center/snippets/package.json'
- '.github/workflows/security-center-snippets.yaml'
schedule:
- cron: '0 0 * * 0'
Expand Down Expand Up @@ -58,14 +61,14 @@ jobs:
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-node-
- name: install repo dependencies
run: npm install
working-directory: .
Expand All @@ -89,7 +92,7 @@ jobs:
with:
name: test-results
path: security-center/snippets/${{ env.MOCHA_REPORTER_OUTPUT }}
retention-days: 1
retention-days: 1
flakybot:
permissions:
contents: 'read'
Expand Down

0 comments on commit e1a8b22

Please sign in to comment.