Skip to content

Commit 5a1744b

Browse files
authored
Sync .github/workflows directory with azure-sdk-tools repository (Azure#45075)
1 parent f17e561 commit 5a1744b

File tree

2 files changed

+47
-18
lines changed

2 files changed

+47
-18
lines changed
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.
2-
3-
pipelines:
4-
'*':
5-
mainPipelineId: 694
6-
retail:
7-
source:
8-
credscan:
9-
lastModifiedDate: 2024-09-18
10-
psscriptanalyzer:
11-
lastModifiedDate: 2024-09-18
12-
armory:
13-
lastModifiedDate: 2024-09-18
14-
binary:
15-
credscan:
16-
lastModifiedDate: 2025-02-04
17-
binskim:
18-
lastModifiedDate: 2025-02-04
1+
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.
2+
3+
pipelines:
4+
'*':
5+
mainPipelineId: 694
6+
retail:
7+
source:
8+
credscan:
9+
lastModifiedDate: 2024-09-18
10+
psscriptanalyzer:
11+
lastModifiedDate: 2024-09-18
12+
armory:
13+
lastModifiedDate: 2024-09-18
14+
binary:
15+
credscan:
16+
lastModifiedDate: 2025-02-04
17+
binskim:
18+
lastModifiedDate: 2025-02-04

.github/workflows/post-apiview.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: After APIView
2+
3+
on:
4+
check_run:
5+
types: [completed]
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
post-apiview:
13+
name: After APIView
14+
runs-on: ubuntu-24.04
15+
if: |
16+
github.event.check_run.check_suite.app.name == 'Azure Pipelines' && (
17+
contains(github.event.check_run.name, 'Build Build') ||
18+
contains(github.event.check_run.name, 'Build Analyze') )
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
sparse-checkout: 'eng/common'
24+
25+
- name: Create APIView Comment on PR
26+
run: |
27+
. "eng/common/scripts/Helpers/ApiView-Helpers.ps1"
28+
Set-ApiViewCommentForRelatedIssues -HeadCommitish ${{ github.event.check_run.head_sha }} -AuthToken ${{ secrets.GITHUB_TOKEN }}
29+
shell: pwsh

0 commit comments

Comments
 (0)