Skip to content

Commit 21734ce

Browse files
authored
[chore] Rename all pipeline files to standardise them (#140)
* chore: rename all pipeline files to standardise them * update pipelines to use v2 * remove offending semgrep action
1 parent ee5e60b commit 21734ce

File tree

7 files changed

+23
-77
lines changed

7 files changed

+23
-77
lines changed

.github/workflows/push_pr.yml renamed to .github/workflows/on_push_pr.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ jobs:
2828
with:
2929
semgrep-append: false
3030
golangci-lint-config: golangci-lint-limited
31-
- name: Semgrep
32-
uses: returntocorp/semgrep-action@v1
33-
with:
34-
auditOn: push
3531
- name: golangci-lint
3632
uses: golangci/golangci-lint-action@v3
3733
continue-on-error: ${{ github.event_name != 'pull_request' }}
File renamed without changes.

.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.

.github/workflows/trigger_prerelease.yml renamed to .github/workflows/trigger_prerelease.yaml

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
with:
1616
rt-included-files: go.mod,go.sum,build/Dockerfile
1717
secrets:

0 commit comments

Comments
 (0)