Skip to content

Commit 411d1e1

Browse files
committed
chore: update repository templates to ory/meta@d4cb957
1 parent 8d6ccb9 commit 411d1e1

1 file changed

Lines changed: 22 additions & 8 deletions

File tree

‎.github/workflows/licenses.yml‎

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,35 @@ on:
1212
- master
1313

1414
jobs:
15-
licenses:
15+
check:
1616
name: License compliance
17+
permissions:
18+
contents: read
1719
runs-on: ubuntu-latest
1820
steps:
1921
- name: Install script
20-
uses: ory/ci/licenses/setup@master
22+
uses: ory/ci/licenses/setup@35878b67f40c377bcb14dce2c26cf92e53586b4a # master
2123
with:
22-
token: ${{ secrets.ORY_BOT_PAT || secrets.GITHUB_TOKEN }}
24+
token: ${{ github.token }}
2325
- name: Check licenses
24-
uses: ory/ci/licenses/check@master
26+
uses: ory/ci/licenses/check@35878b67f40c377bcb14dce2c26cf92e53586b4a # master
27+
28+
write:
29+
name: Update license overview
30+
if:
31+
${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' ||
32+
github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v3') }}
33+
needs: check
34+
permissions:
35+
contents: write
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Install script
39+
uses: ory/ci/licenses/setup@35878b67f40c377bcb14dce2c26cf92e53586b4a # master
40+
with:
41+
token: ${{ secrets.ORY_BOT_PAT || github.token }}
2542
- name: Write, commit, push licenses
26-
uses: ory/ci/licenses/write@master
27-
if:
28-
${{ github.ref == 'refs/heads/main' || github.ref ==
29-
'refs/heads/master' || github.ref == 'refs/heads/v3' }}
43+
uses: ory/ci/licenses/write@35878b67f40c377bcb14dce2c26cf92e53586b4a # master
3044
with:
3145
author-email:
3246
${{ secrets.ORY_BOT_PAT &&

0 commit comments

Comments
 (0)