Skip to content

Commit 9638fb0

Browse files
authored
Merge pull request #14 from contentstack/master
Next branch update
2 parents 43cbb9d + 8ffbfec commit 9638fb0

4 files changed

Lines changed: 31 additions & 20 deletions

File tree

.github/workflows/jira.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
types: [opened]
55
jobs:
6-
security:
6+
security-jira:
77
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'snyk-bot' || contains(github.event.pull_request.head.ref, 'snyk-fix-') || contains(github.event.pull_request.head.ref, 'snyk-upgrade-')}}
88
runs-on: ubuntu-latest
99
steps:
@@ -26,3 +26,8 @@ jobs:
2626
PR: ${{ github.event.pull_request.html_url }}
2727
2828
fields: "${{ secrets.JIRA_FIELDS }}"
29+
- name: Transition issue
30+
uses: atlassian/gajira-transition@v3
31+
with:
32+
issue: ${{ steps.create.outputs.issue }}
33+
transition: ${{ secrets.JIRA_TRANSITION }}

.github/workflows/nuget-publish.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,34 @@ jobs:
1111
- name: Checkout repository
1212
uses: actions/checkout@v1
1313
- name: Setup .NET Core @ Latest
14-
uses: actions/setup-dotnet@v1
15-
with:
16-
dotnet-version: '3.1.x'
14+
uses: actions/setup-dotnet@v3
1715
env:
18-
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_AUTH_TOKEN }}
16+
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
1917
- name: Build solution and generate NuGet package
2018
run: |
21-
cd contentstack-utils-dotnet
2219
dotnet pack -c Release -o out
2320
2421
- name: Push generated package to GitHub registry
25-
run: dotnet nuget push ./contentstack-utils-dotnet/out/*.nupkg --api-key $NUGET_AUTH_TOKEN --skip-duplicate --no-symbols true
22+
run: |
23+
cd out
24+
dotnet nuget push "contentstack.utils.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate --no-symbols true --source https://api.nuget.org/v3/index.json
2625
2726
publish-git:
2827
runs-on: windows-latest
2928
steps:
3029
- name: Checkout repository
3130
uses: actions/checkout@v1
3231
- name: Setup .NET Core @ Latest
33-
uses: actions/setup-dotnet@v1
32+
uses: actions/setup-dotnet@v3
3433
with:
35-
dotnet-version: '3.1.x'
3634
source-url: https://nuget.pkg.github.com/Contentstack/index.json
3735
env:
3836
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3937
- name: Build solution and generate NuGet package
4038
run: |
41-
cd contentstack-utils-dotnet
4239
dotnet pack -c Release -o out
4340
4441
- name: Push generated package to GitHub registry
45-
run: dotnet nuget push ./contentstack-utils-dotnet/out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate --no-symbols true
42+
run: |
43+
cd out
44+
dotnet nuget push "contentstack.utils.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate --no-symbols true --source https://api.nuget.org/v3/index.json

.github/workflows/sast-scan.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: SAST Scan
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
jobs:
6+
security-sast:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Semgrep Scan
11+
run: docker run -v /var/run/docker.sock:/var/run/docker.sock -v "${PWD}:/src" returntocorp/semgrep semgrep scan --config auto

.github/workflows/sca-scan.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ on:
33
pull_request:
44
types: [opened, synchronize, reopened]
55
jobs:
6-
security:
6+
security-sca:
77
runs-on: ubuntu-latest
88
steps:
9-
- name: Checkout repository
10-
uses: actions/checkout@master
11-
- uses: snyk/actions/setup@master
12-
- name: Setup .NET
13-
uses: actions/setup-dotnet@v3.0.3
14-
- name: Restore dependencies
15-
run: dotnet restore ./Contentstack.Utils.sln
9+
- uses: actions/checkout@master
1610
- name: Run Snyk to check for vulnerabilities
17-
run: cd Contentstack.Utils && snyk test --fail-on=all
11+
uses: snyk/actions/dotnet@master
1812
env:
1913
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
14+
with:
15+
args: --fail-on=all

0 commit comments

Comments
 (0)