Skip to content

Commit eabd86d

Browse files
committed
Use public reuseable graph analysis workflow
1 parent 40f2a0c commit eabd86d

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

.github/workflows/java-code-analysis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
with:
9999
name: ${{ steps.set-sources-upload-name.outputs.sources-upload-name }}
100100
path: ./source
101+
include-hidden-files: true
101102
if-no-files-found: error
102103
retention-days: 1
103104

@@ -113,11 +114,12 @@ jobs:
113114

114115
analyze-code-graph:
115116
needs: [prepare-code-to-analyze]
116-
uses: ./.github/workflows/analyze-code-graph.yml
117+
uses: JohT/code-graph-analysis-pipeline/.github/workflows/public-analyze-code-graph.yml@7f43cf96d676f715cf278b020ce1dbb3338f900b # v2
117118
with:
118119
analysis-name: ${{ needs.prepare-code-to-analyze.outputs.analysis-name }}
119120
artifacts-upload-name: ${{ needs.prepare-code-to-analyze.outputs.artifacts-upload-name }}
120121
sources-upload-name: ${{ needs.prepare-code-to-analyze.outputs.sources-upload-name }}
122+
ref: 7f43cf96d676f715cf278b020ce1dbb3338f900b
121123

122124

123125
analysis-results:
@@ -134,7 +136,7 @@ jobs:
134136
with:
135137
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
136138

137-
- name: (Code Analysis Setup) Download source code and artifacts for analysis
139+
- name: Download source code and artifacts for analysis
138140
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
139141
with:
140142
name: ${{ needs.analyze-code-graph.outputs.uploaded-analysis-results }}

.github/workflows/typescript-code-analysis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,18 @@ jobs:
7979
with:
8080
name: ${{ steps.set-sources-upload-name.outputs.sources-upload-name }}
8181
path: .
82+
include-hidden-files: true
8283
if-no-files-found: error
8384
retention-days: 1
8485

8586

8687
analyze-code-graph:
8788
needs: [prepare-code-to-analyze]
88-
uses: ./.github/workflows/analyze-code-graph.yml
89+
uses: JohT/code-graph-analysis-pipeline/.github/workflows/public-analyze-code-graph.yml@7f43cf96d676f715cf278b020ce1dbb3338f900b # v2
8990
with:
9091
analysis-name: ${{ needs.prepare-code-to-analyze.outputs.analysis-name }}
9192
sources-upload-name: ${{ needs.prepare-code-to-analyze.outputs.sources-upload-name }}
93+
ref: 7f43cf96d676f715cf278b020ce1dbb3338f900b
9294

9395

9496
analysis-results:

renovate.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111
],
1212
"ignoreUnstable": false,
1313
"packageRules": [
14+
{
15+
"description": "Code Graph Analysis Pipeline Workflow",
16+
"groupName": [
17+
"Code Graph Analysis Pipeline Workflow"
18+
],
19+
"matchSourceUrls": [
20+
"https://github.com/JohT/code-graph-analysis-pipeline"
21+
],
22+
"matchUpdateTypes": [
23+
"digest"
24+
]
25+
}
1426
],
1527
"customManagers": [
1628
{
@@ -95,16 +107,15 @@
95107
"extractVersionTemplate": "^(?<version>\\d+).*$"
96108
},
97109
{
98-
"description": "Update code-graph-analysis-pipeline repository commit hash",
110+
"description": "Update code-graph-analysis-pipeline ref parameter",
99111
"customType": "regex",
100112
"fileMatch": [
101113
"(^|/)(workflow-templates|\\.(?:github|gitea|forgejo)/(?:workflows|actions))/.+\\.ya?ml$",
102114
"(^|/)action\\.ya?ml$"
103115
],
104116
"matchStringsStrategy": "combination",
105117
"matchStrings": [
106-
"uses: actions/checkout@v*\\s",
107-
"repository:\\s*JohT/code-graph-analysis-pipeline\\s",
118+
"uses: JohT/code-graph-analysis-pipeline/.github/workflows/public-analyze-code-graph.yml*\\s*",
108119
"ref:\\s*(?<currentDigest>.*?)\\s"
109120
],
110121
"packageNameTemplate": "https://github.com/JohT/code-graph-analysis-pipeline",

0 commit comments

Comments
 (0)