Skip to content

Commit

Permalink
Merge branch 'main' into move-announcment
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuloc authored Jun 5, 2024
2 parents 565ccc0 + 35a4bdd commit e9e8bad
Show file tree
Hide file tree
Showing 10 changed files with 1,841 additions and 35 deletions.
10 changes: 10 additions & 0 deletions .arista/secret_allowlist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Arista Secret Scanner allow list

version: v1.0
allowed_secrets:
- secret_pattern: "https://ansible:ansible@192.168.0.2"
category: FALSE_POSITIVE
reason: Used as example in documentation
- secret_pattern: "https://ansible:ansible@192.168.0.17"
category: FALSE_POSITIVE
reason: Used as example in documentation
37 changes: 13 additions & 24 deletions .github/workflows/code-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/secret-scanner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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
steps:
- name: Run scanner
uses: aristanetworks/secret-scanner-service@main
18 changes: 18 additions & 0 deletions .sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Path to sources
sonar.sources=anta/,asynceapi/
#sonar.exclusions=
#sonar.inclusions=

# Path to tests
sonar.tests=tests/
#sonar.test.exclusions=
#sonar.test.inclusions=

# Source encoding
#sonar.sourceEncoding=UTF-8

# Python version (for python projects only)
sonar.python.version=3.9,3.10,3.11,3.12

# Exclusions for copy-paste detection
#sonar.cpd.exclusions=,
Loading

0 comments on commit e9e8bad

Please sign in to comment.