Skip to content

Commit

Permalink
chore: add licensing and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ritika-du committed Oct 28, 2024
1 parent ccf6a46 commit 2dfff33
Show file tree
Hide file tree
Showing 4 changed files with 687 additions and 228 deletions.
35 changes: 8 additions & 27 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,16 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Lint

on:
# This workflow is triggered on pull requests to the main branch.
pull_request:
branches: [main]
types: [milestoned, opened, synchronize]
# milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow).
types: [milestoned, opened, edited, synchronize]

jobs:
validate:
runs-on: ubuntu-latest
name: Lint
permissions:
contents: read # Allows reading the repo contents

steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0

- name: Environment setup
uses: defenseunicorns/uds-common/.github/workflows/callable-lint.yaml@2a5e66fceb5c506008d5f69f42abcf38ccf86b44 # v1.2.0
with:
registry1Username: ${{ secrets.IRON_BANK_ROBOT_USERNAME }}
registry1Password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }}
ghToken: ${{ secrets.GITHUB_TOKEN }}

- name: Install lint deps
run: |
uds run lint:deps
- name: Lint the repository
run: |
uds run lint:yaml
run:
uses: defenseunicorns/uds-common/.github/workflows/callable-lint.yaml@2a5e66fceb5c506008d5f69f42abcf38ccf86b44 # v1.2.0
secrets: inherit

Check failure on line 16 in .github/workflows/lint.yaml

View workflow job for this annotation

GitHub Actions / run / run

16:21 [new-line-at-end-of-file] no new line character at the end of file
201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

Loading

0 comments on commit 2dfff33

Please sign in to comment.