Adding upstream version 1.0.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
a1777afd4b
commit
f13b7abbd8
36 changed files with 2108 additions and 153 deletions
2
.github/release.md
vendored
2
.github/release.md
vendored
|
@ -83,7 +83,7 @@ This is to be executed at the top of the repo
|
|||
git push origin HEAD
|
||||
gh pr create --title 'bump: ANTA vx.x.x'
|
||||
```
|
||||
9. Merge PR after review and wait for [workflow](https://github.com/arista-netdevops-community/anta/actions/workflows/release.yml) to be executed.
|
||||
9. Merge PR after review and wait for [workflow](https://github.com/aristanetworks/anta/actions/workflows/release.yml) to be executed.
|
||||
|
||||
```bash
|
||||
gh pr merge --squash
|
||||
|
|
37
.github/workflows/code-testing.yml
vendored
37
.github/workflows/code-testing.yml
vendored
|
@ -59,30 +59,19 @@ jobs:
|
|||
pip install .
|
||||
- name: install dev requirements
|
||||
run: pip install .[dev]
|
||||
missing-documentation:
|
||||
name: "Warning documentation is missing"
|
||||
runs-on: ubuntu-20.04
|
||||
needs: [file-changes]
|
||||
if: needs.file-changes.outputs.cli == 'true' && needs.file-changes.outputs.docs == 'false'
|
||||
steps:
|
||||
- name: Documentation is missing
|
||||
uses: GrantBirki/comment@v2.0.10
|
||||
with:
|
||||
body: |
|
||||
Please consider that documentation is missing under `docs/` folder.
|
||||
You should update documentation to reflect your change, or maybe not :)
|
||||
lint-yaml:
|
||||
name: Run linting for yaml files
|
||||
runs-on: ubuntu-20.04
|
||||
needs: [file-changes, check-requirements]
|
||||
if: needs.file-changes.outputs.code == 'true'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: yaml-lint
|
||||
uses: ibiqlik/action-yamllint@v3
|
||||
with:
|
||||
config_file: .yamllint.yml
|
||||
file_or_dir: .
|
||||
# @gmuloc: commenting this out for now
|
||||
#missing-documentation:
|
||||
# name: "Warning documentation is missing"
|
||||
# runs-on: ubuntu-20.04
|
||||
# needs: [file-changes]
|
||||
# if: needs.file-changes.outputs.cli == 'true' && needs.file-changes.outputs.docs == 'false'
|
||||
# steps:
|
||||
# - name: Documentation is missing
|
||||
# uses: GrantBirki/comment@v2.0.10
|
||||
# with:
|
||||
# body: |
|
||||
# Please consider that documentation is missing under `docs/` folder.
|
||||
# You should update documentation to reflect your change, or maybe not :)
|
||||
lint-python:
|
||||
name: Check the code style
|
||||
runs-on: ubuntu-20.04
|
||||
|
|
30
.github/workflows/secret-scanner.yml
vendored
Normal file
30
.github/workflows/secret-scanner.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Secret-scanner workflow from Arista Networks.
|
||||
on:
|
||||
pull_request:
|
||||
types: [synchronize]
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
name: Secret Scanner (go/secret-scanner)
|
||||
jobs:
|
||||
scan_secret:
|
||||
name: Scan incoming changes
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/aristanetworks/secret-scanner-service:main
|
||||
options: --name sss-scanner
|
||||
steps:
|
||||
- name: Checkout ${{ github.ref }}
|
||||
# Hitting https://github.com/actions/checkout/issues/334 so trying v1
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Run scanner
|
||||
run: |
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
scanner commit . github ${{ github.repository }} \
|
||||
--markdown-file job_summary.md \
|
||||
${{ github.event_name == 'pull_request' && format('--since-commit {0}', github.event.pull_request.base.sha) || ''}}
|
||||
- name: Write result to summary
|
||||
run: cat ./job_summary.md >> $GITHUB_STEP_SUMMARY
|
||||
if: ${{ always() }}
|
Loading…
Add table
Add a link
Reference in a new issue