Skip to content

Commit 0c71424

Browse files
CI: Add Repository Metadata job to G2G workflow
Change-Id: Ie5e60996b3d063dfbb101a4a09b826ec4858fe65 Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
1 parent 4d8d608 commit 0c71424

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/github2gerrit.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,36 @@ concurrency:
4848
cancel-in-progress: ${{ github.event_name == 'pull_request_target' }}
4949

5050
jobs:
51+
repository-metadata:
52+
name: "Repository Metadata"
53+
runs-on: ubuntu-latest
54+
permissions:
55+
contents: read
56+
pull-requests: read
57+
timeout-minutes: 5
58+
steps:
59+
# yamllint disable-line rule:line-length
60+
- uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
61+
with:
62+
egress-policy: audit
63+
64+
# yamllint disable-line rule:line-length
65+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
66+
with:
67+
fetch-depth: 0
68+
69+
- name: "Gather repository metadata"
70+
id: repo-metadata
71+
# yamllint disable-line rule:line-length
72+
# uses: lfreleng-actions/repository-metadata-action@5fd432a3a4593f838a8a51e39be81c9afb250e0b # v0.1.2
73+
# yamllint disable-line rule:line-length
74+
uses: modeseven-lfreleng-actions/repository-metadata-action@gerrit-metadata # Testing
75+
with:
76+
github_token: ${{ secrets.GITHUB_TOKEN }}
77+
generate_summary: 'false'
78+
artifact_upload: 'true'
79+
artifact_formats: 'json'
80+
5181
github2gerrit:
5282
name: 'GitHub2Gerrit'
5383
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)