Skip to content

Commit a6cd5fa

Browse files
author
Guiners
committed
iam-deny.yaml fix
1 parent 8713713 commit a6cd5fa

1 file changed

Lines changed: 30 additions & 28 deletions

File tree

.github/workflows/iam-deny.yaml

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -44,38 +44,40 @@ jobs:
4444
run:
4545
working-directory: 'iam/deny'
4646
steps:
47-
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
48-
with:
49-
ref: ${{github.event.pull_request.head.sha}}
50-
- uses: 'google-github-actions/auth@71fee32a0bb7e97b4d33d548e7d957010649d8fa' # v2.1.3
51-
with:
52-
workload_identity_provider: 'projects/949737848314/locations/global/workloadIdentityPools/iam-deny-test-pool/providers/iam-deny-test-provider'
53-
service_account: 'kokoro-ca@isakovf-iam-deny-samples.iam.gserviceaccount.com'
54-
create_credentials_file: 'true'
55-
access_token_lifetime: 600s
56-
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
57-
with:
47+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
48+
with:
49+
ref: ${{ github.event.pull_request.head.sha }}
50+
51+
- uses: google-github-actions/auth@71fee32a0bb7e97b4d33d548e7d957010649d8fa # v2.1.3
52+
with:
53+
workload_identity_provider: 'projects/949737848314/locations/global/workloadIdentityPools/iam-deny-test-pool/providers/iam-deny-test-provider'
54+
service_account: 'kokoro-ca@isakovf-iam-deny-samples.iam.gserviceaccount.com'
55+
create_credentials_file: true
56+
access_token_lifetime: 600s
57+
58+
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
59+
with:
5860
node-version: 16
59-
- name: Get npm cache directory
60-
id: npm-cache-dir
61-
shell: bash
62-
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
63-
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
64-
id: npm-cache
65-
with:
61+
- name: Get npm cache directory
62+
id: npm-cache-dir
63+
shell: bash
64+
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
65+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
66+
id: npm-cache
67+
with:
6668
path: ${{ steps.npm-cache-dir.outputs.dir }}
6769
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
6870
restore-keys: "${{ runner.os }}-node- \n"
69-
- name: install repo dependencies
70-
run: npm install
71-
working-directory: .
72-
- name: install directory dependencies
73-
run: npm install
74-
- run: npm run build --if-present
75-
- name: set env vars for scheduled run
76-
if: github.event.action == 'schedule'
77-
run: |
71+
- name: install repo dependencies
72+
run: npm install
73+
working-directory: .
74+
- name: install directory dependencies
75+
run: npm install
76+
- run: npm run build --if-present
77+
- name: set env vars for scheduled run
78+
if: github.event.action == 'schedule'
79+
run: |
7880
echo "MOCHA_REPORTER_SUITENAME=iam-deny" >> $GITHUB_ENV
7981
echo "MOCHA_REPORTER_OUTPUT=${{github.run_id}}_sponge_log.xml" >> $GITHUB_ENV
8082
echo "MOCHA_REPORTER=xunit" >> $GITHUB_ENV
81-
- run: npm test
83+
- run: npm test

0 commit comments

Comments
 (0)