Skip to content

Commit

Permalink
Sync files with networkservicemesh/cmd-template
Browse files Browse the repository at this point in the history
This PR syncs files with https://github.com/networkservicemesh/cmd-template

Revision: https://github.com/networkservicemesh/cmd-template/commits/b06b95264e7c9af33c7061aefb42b0e9f54fd3b0

commit b06b95264e7c9af33c7061aefb42b0e9f54fd3b0
Author: Arpad Kiss <[email protected]>
Date:   Fri Apr 19 12:42:49 2024 +0200

    Add env-check to ci.yaml (#131)

    Signed-off-by: Arpad Kiss <[email protected]>

Signed-off-by: NSMBot <[email protected]>
  • Loading branch information
NSMBot committed Apr 19, 2024
1 parent 37c91e1 commit 05bd9e6
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 21 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
shellcheck:
uses: networkservicemesh/.github/.github/workflows/shellcheck.yaml@main

check-env:
uses: networkservicemesh/.github/.github/workflows/env-check.yaml@main
with:
prefix: "NSM_"

golangci-lint:
uses: networkservicemesh/.github/.github/workflows/golangci-lint.yaml@main

Expand All @@ -24,16 +29,16 @@ jobs:
restrictNSMDeps:
uses: networkservicemesh/.github/.github/workflows/restrict-nsm-deps.yaml@main
with:
allowed_repositories: "api, sdk, sdk-k8s, sdk-kernel, sdk-sriov, sdk-vpp"
allowed_repositories: "api, sdk, sdk-k8s, sdk-kernel, sdk-sriov, sdk-vpp, govpp, vpphelper"

checkgomod:
uses: networkservicemesh/.github/.github/workflows/checkgomod.yaml@main

gogenerate:
uses: networkservicemesh/.github/.github/workflows/cmd-gogenerate.yaml@main

# excludereplace:
# uses: networkservicemesh/.github/.github/workflows/exclude-replace.yaml@main
excludereplace:
uses: networkservicemesh/.github/.github/workflows/exclude-replace.yaml@main

docker-build-and-test:
if: github.repository != 'networkservicemesh/cmd-template'
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/docker-push-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ name: Docker push ghcr
on:
push:
branches: [main]
workflow_run:
types:
- completed
workflows:
- 'automerge'
jobs:
push:
if: ${{ github.repository != 'networkservicemesh/cmd-template' && (github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot' || github.event_name == 'push') }}
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/docker-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
push:
branches:
- main
workflow_run:
types:
- completed
workflows:
- 'automerge'
jobs:
push:
if: ${{ github.repository != 'networkservicemesh/cmd-template' && (github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot' || github.event_name == 'push') }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ on:
- completed
workflows:
- "ci"
branches:
- release/*
jobs:
get-tag:
name: Get tag
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && contains(github.event.workflow_run.head_branch, 'release/') }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
outputs:
tag: ${{ steps.get-tag-step.outputs.tag }}
steps:
- name: Get tag
run: |
branch=${{github.event.workflow_run.head_branch}}
echo '::set-output name=tag::'${branch#release/}
echo tag=${branch#release/} >> $GITHUB_OUTPUT
id: get-tag-step

check-gomod-deps:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/update-deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@ on:
push:
branches:
- main
workflow_run:
types:
- completed
workflows:
- 'automerge'
jobs:
update-deployments-k8s:
if: ${{ github.repository != 'networkservicemesh/cmd-template' && (github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot' || github.event_name == 'push') }}
if: ${{ github.repository != 'networkservicemesh/cmd-template' }}
uses: networkservicemesh/.github/.github/workflows/update-deployments.yaml@main
secrets:
token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Security Policy

## Reporting a security issue

If you believe you have found a security issue in Network Service Mesh, please send a description of the issue to [email protected]. We will send a confirmation to acknowledge your report, and an additional email with the result of our assessment (normally within 1-2 working days).

## Supported versions

Note that Network Service Mesh is developed and maintained on one track, thus we encourage our users to follow our latest releases. For this reason we only investigate whether the reported issue is affecting the latest release of Network Service Mesh and provide a fix in a patch release on top of the latest release.

0 comments on commit 05bd9e6

Please sign in to comment.