File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : octoguard
2
2
3
- concurrency :
4
- group : ${{ github.workflow }}-${{ github.ref }}
5
- cancel-in-progress : true
6
-
7
3
on :
8
4
workflow_call :
9
5
workflow_dispatch :
Original file line number Diff line number Diff line change @@ -41,14 +41,18 @@ jobs:
41
41
return;
42
42
}
43
43
44
- await github.request('GET /repos/{owner}/{repo}/code-scanning/alerts', {
45
- ...context.repo,
46
- }).catch(error => {
47
- if (error.status === 403) {
48
- throw new Error('Advanced Security needs to be enabled on this repository.');
49
- }
50
- });
51
- core.info('Advanced Security is enabled on this repository.');
44
+ try {
45
+ await github.request('GET /repos/{owner}/{repo}/code-scanning/alerts', {
46
+ ...context.repo,
47
+ }).catch(err => {
48
+ if (err.status === 403) {
49
+ throw new Error('Advanced Security needs to be enabled on this repository.');
50
+ }
51
+ });
52
+ core.info('Advanced Security is enabled on this repository.');
53
+ } catch (err) {
54
+ core.setFailed(err.message);
55
+ }
52
56
-
53
57
name : Setup uv
54
58
if : ${{ env.HAS_WORKFLOWS }}
You can’t perform that action at this time.
0 commit comments