Skip to content

Commit

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

name: Scan

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, reopened, 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/actions/setup@24c8a2a48eeb33773b76b3587c489cb17496c9e0 # v0.12.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
uses: defenseunicorns/uds-common/.github/workflows/callable-lint.yaml@97fc3a00fb2b9897316131cd210026691e160d5a # v1.1.1
secrets: inherit

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

View workflow job for this annotation

GitHub Actions / validate / run

15:21 [new-line-at-end-of-file] no new line character at the end of file
30 changes: 0 additions & 30 deletions .github/workflows/pull-request-conditionals.yaml

This file was deleted.

0 comments on commit 7f84661

Please sign in to comment.