Skip to content

Commit b8c852d

Browse files
authored
[chore] Rename all pipeline files to standardise them (#142)
* chore: rename all pipeline files to standardise them * update pipelines to use v2 * remove offending semgrep action
1 parent 458a874 commit b8c852d

7 files changed

Lines changed: 23 additions & 77 deletions

File tree

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v4
2323
- uses: newrelic/newrelic-infra-checkers@v1
24-
- name: Semgrep
25-
uses: returntocorp/semgrep-action@v1
26-
with:
27-
auditOn: push
2824
- name: golangci-lint
2925
uses: golangci/golangci-lint-action@v3
3026
continue-on-error: ${{ github.event_name != 'pull_request' }}

.github/workflows/repolinter.yml

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,10 @@
22
# workflow_dispatch to work properly
33
name: Repolinter Action
44

5-
# NOTE: This workflow will ONLY check the default branch!
6-
# Currently there is no elegant way to specify the default
7-
# branch in the event filtering, so branches are instead
8-
# filtered in the "Test Default Branch" step.
9-
on: [push, workflow_dispatch]
5+
on:
6+
push:
7+
workflow_dispatch:
108

119
jobs:
12-
repolint:
13-
name: Run Repolinter
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Test Default Branch
17-
id: default-branch
18-
uses: actions/github-script@v2
19-
with:
20-
script: |
21-
const data = await github.repos.get(context.repo)
22-
return data.data && data.data.default_branch === context.ref.split('/').slice(-1)[0]
23-
- name: Checkout Self
24-
if: ${{ steps.default-branch.outputs.result == 'true' }}
25-
uses: actions/checkout@v4
26-
- name: Run Repolinter
27-
if: ${{ steps.default-branch.outputs.result == 'true' }}
28-
uses: newrelic/repolinter-action@v1
29-
with:
30-
config_url: https://raw.githubusercontent.com/newrelic/.github/main/repolinter-rulesets/community-plus.yml
31-
output_type: issue
10+
repolinter:
11+
uses: newrelic/coreint-automation/.github/workflows/reusable_repolinter.yaml@v2

.github/workflows/security.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Security Scan
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
- renovate/**
9+
pull_request:
10+
schedule:
11+
- cron: "0 3 * * *"
12+
13+
jobs:
14+
security:
15+
uses: newrelic/coreint-automation/.github/workflows/reusable_security.yaml@v2
16+
with:
17+
skip-dirs: "build"

.github/workflows/security.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
prerelease:
14-
uses: newrelic/coreint-automation/.github/workflows/trigger_prerelease.yaml@v1
14+
uses: newrelic/coreint-automation/.github/workflows/reusable_trigger_prerelease.yaml@v2
1515
secrets:
1616
bot_token: ${{ secrets.COREINT_BOT_TOKEN }}
1717
slack_channel: ${{ secrets.COREINT_SLACK_CHANNEL }}

0 commit comments

Comments
 (0)