Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kbroughton/make lint action #452

Merged

Conversation

kbroughton
Copy link
Contributor

@kbroughton kbroughton commented Jul 22, 2022

Background

Panther currently has two github actions in .github/workflows

  • asana.yml
  • main.yml to sync_prs_from_community_to_dogfood

Both of these require Panther specific secrets and have to be disabled manually when the repo is forked.

On the other hand, every time I submit a PR, it fails the linting check from a circle-ci plugin.
lint.yml as a github action would make it much easier to make PRs that work the first time.

Changes

add .github/workflows/lint.yml

Testing

Tested locally using nektos/act and with pushes to forked repos.

@k-bailey
Copy link
Contributor

k-bailey commented Aug 2, 2022

Agree this is not ideal. Syncing internally with the team.

@kbroughton kbroughton requested a review from a team August 5, 2022 17:38
Copy link
Contributor

@edyesed edyesed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this PR adds a linting task that runs inside github actions when a pull request is created or updated. thanks for this submission!

@k-bailey k-bailey merged commit 59f8f22 into panther-labs:master Aug 5, 2022
@k-bailey k-bailey mentioned this pull request Aug 5, 2022
kbroughton added a commit to kbroughton/panther-analysis that referenced this pull request Aug 19, 2022
…n/panther-analysis into k8s-unauthorized-exec-into-pod

* 'k8s-unauthorized-exec-into-pod' of github.com:kbroughton/panther-analysis: (21 commits)
  fix: greynoise object function call not attribute (panther-labs#479)
  Packs: Cloudflare & Slack (panther-labs#478)
  feat: bring additional alert_context to AWS rules which had none (panther-labs#472)
  feat: cyclomatic complexity linting (panther-labs#474)
  Tweak - Cloudflare L7 DDoS (panther-labs#475)
  chore: update test badge to use github actions (panther-labs#471)
  Combine GSuite High/Medium/Low Rule alerts into one (panther-labs#467)
  kbailey: remove circleCI (panther-labs#470)
  Kbroughton/make lint action (panther-labs#452)
  fix: panther specific github actions should not run on forks (panther-labs#469)
  Remove managed schemas (panther-labs#421)
  Slack Detections - User (panther-labs#464)
  Slack Detections - EKM (panther-labs#463)
  Slack Detections - App (panther-labs#462)
  Initial Commit - Slack Detections - File (panther-labs#465)
  Slack Detections - Channel (panther-labs#461)
  Slack Detections - Workspace/Org (panther-labs#460)
  Update GSuite Alerts Rules with Rule Name (panther-labs#440)
  Add example lookup table and data file (panther-labs#446)
  Slack Data Models & Alert Context Helper (panther-labs#458)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants