Skip to content

Commit

Permalink
Rename to plural input name & specify input for Go examples (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
baksetercx authored Dec 11, 2024
1 parent 9d409aa commit a8a68c7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/example-build-deploy-go-google.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
with:
# This can be set to a more specific path if you want to analyze only a part of the repository.
working-directory: '.'
languages: 'go'

build-scan:
name: Build and Scan
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/example-build-deploy-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
with:
# This can be set to a more specific path if you want to analyze only a part of the repository.
working-directory: '.'
languages: 'go'

build-scan:
name: Build and Scan
Expand Down
14 changes: 10 additions & 4 deletions analyze/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ inputs:
Only needed if you require .NET tools that are outside of `working-directory` for the build.
required: false
default: './.config/dotnet-tools.json'
languages:
description: 'Comma-separated list of languages to run CodeQL analyze on.'
required: false
default: 'csharp'
language:
description: 'Languages to run CodeQL analyze on.'
description: 'Comma-separated list of languages to run CodeQL analyze on.'
required: false
default: 'csharp'
deprecationMessage: |
Please use `languages` instead, which is a drop-in replacement. `language` will be removed in the future.
runs:
using: 'composite'
Expand All @@ -42,15 +48,15 @@ runs:
uses: github/codeql-action/init@v3
with:
config-file: 'codeql-config.yml'
languages: ${{ inputs.language }}
languages: ${{ inputs.languages }}

- name: Restore .NET tools
if: ${{ inputs.language == 'csharp' }}
if: ${{ contains(inputs.languages, 'csharp') }}
shell: bash
run: dotnet tool restore --tool-manifest '${{ inputs.dotnet-tool-manifest }}'

- name: Build projects
if: ${{ inputs.language == 'csharp' }}
if: ${{ contains(inputs.languages, 'csharp') }}
shell: bash
run: |
projects=$(find . -iname "*csproj")
Expand Down

0 comments on commit a8a68c7

Please sign in to comment.