GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add support for adding `setup-dotnet` steps to `sync.sh` · github/codeql-action@f20e021

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • __local-bundle.yml
  • pr-checks
    • checks
      • local-bundle.yml
    • sync.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/__local-bundle.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/__local-bundle.yml
+14Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎pr-checks/checks/local-bundle.yml‎

Copy file name to clipboardExpand all lines: pr-checks/checks/local-bundle.yml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description: "Tests using a CodeQL bundle from a local file rather than a URL"
33
versions: ["linked"]
44
installGo: true
55
installPython: true
6+
installDotNet: true
67
steps:
78
- name: Fetch latest CodeQL bundle
89
run: |
Collapse file

‎pr-checks/sync.py‎

Copy file name to clipboardExpand all lines: pr-checks/sync.py
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,25 @@ def writeHeader(checkStream):
204204
}
205205
})
206206

207+
installDotNet = is_truthy(checkSpecification.get('installDotNet', ''))
208+
209+
if installDotNet:
210+
baseDotNetVersionExpr = '9.x'
211+
workflowInputs['dotnet-version'] = {
212+
'type': 'string',
213+
'description': 'The version of .NET to install',
214+
'required': False,
215+
'default': baseDotNetVersionExpr,
216+
}
217+
218+
steps.append({
219+
'name': 'Install .NET',
220+
'uses': 'actions/setup-dotnet@v5',
221+
'with': {
222+
'dotnet-version': '${{ inputs.dotnet-version || \'' + baseDotNetVersionExpr + '\' }}'
223+
}
224+
})
225+
207226
# If container initialisation steps are present in the check specification,
208227
# make sure to execute them first.
209228
if 'container' in checkSpecification and 'container-init-steps' in checkSpecification:

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.