Skip to content

Commit b5da1ac

Browse files
committed
updated workflows
1 parent cda2226 commit b5da1ac

File tree

3 files changed

+22
-47
lines changed

3 files changed

+22
-47
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup .NET Core
1717
uses: actions/setup-dotnet@v1
1818
with:
19-
dotnet-version: '5.0.x'
19+
dotnet-version: '6.0.x'
2020
- name: Install dependencies
2121
run: dotnet restore
2222
- name: Build

.github/workflows/linter.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
---
2-
###########################
3-
###########################
4-
## Linter GitHub Actions ##
5-
###########################
6-
###########################
2+
#################################
3+
#################################
4+
## Super Linter GitHub Actions ##
5+
#################################
6+
#################################
77
name: Lint Code Base
88

9-
#
10-
# Documentation:
11-
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
12-
#
13-
149
#############################
1510
# Start the job on all push #
1611
#############################
1712
on:
1813
push:
19-
branches-ignore: [master]
14+
branches-ignore: [master, main]
2015
# Remove the line above to run when pushing to master
2116
pull_request:
22-
branches: [master]
17+
branches: [master, main]
2318

2419
###############
2520
# Set the Job #
@@ -39,17 +34,18 @@ jobs:
3934
# Checkout the code base #
4035
##########################
4136
- name: Checkout Code
42-
uses: actions/checkout@v2
37+
uses: actions/checkout@v3
4338
with:
44-
# Full git history is needed to get a proper list of changed files within `super-linter`
39+
# Full git history is needed to get a proper
40+
# list of changed files within `super-linter`
4541
fetch-depth: 0
4642

4743
################################
4844
# Run Linter against code base #
4945
################################
5046
- name: Lint Code Base
51-
uses: github/super-linter@v3
47+
uses: github/super-linter@v4
5248
env:
5349
VALIDATE_ALL_CODEBASE: false
5450
DEFAULT_BRANCH: master
55-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ossar-analysis.yml

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,12 @@ jobs:
1313
# ubuntu-latest and macos-latest support coming soon
1414
runs-on: windows-latest
1515

16-
steps:
17-
# Checkout your code repository to scan
18-
- name: Checkout repository
19-
uses: actions/checkout@v2
20-
with:
21-
# We must fetch at least the immediate parents so that if this is
22-
# a pull request then we can checkout the head.
23-
fetch-depth: 2
24-
25-
# If this run was triggered by a pull request event, then checkout
26-
# the head of the pull request instead of the merge commit.
27-
- run: git checkout HEAD^2
28-
if: ${{ github.event_name == 'pull_request' }}
29-
30-
# Install dotnet, used by OSSAR
31-
- name: Install .NET
32-
uses: actions/setup-dotnet@v1
33-
with:
34-
dotnet-version: '3.1.201'
35-
36-
# Run open source static analysis tools
37-
- name: Run OSSAR
38-
uses: github/ossar-action@v1
39-
id: ossar
40-
41-
# Upload results to the Security tab
42-
- name: Upload OSSAR results
43-
uses: github/codeql-action/upload-sarif@v1
44-
with:
45-
sarif_file: ${{ steps.ossar.outputs.sarifFile }}
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Run OSSAR
19+
uses: github/ossar-action@v1
20+
id: ossar
21+
- name: Upload results to Security tab
22+
uses: github/codeql-action/upload-sarif@v1
23+
with:
24+
sarif_file: ${{ steps.ossar.outputs.sarifFile }}

0 commit comments

Comments
 (0)