Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Commit f14c054

Browse files
committed
🤖 Update action workflows
1 parent ee728e3 commit f14c054

File tree

3 files changed

+47
-13
lines changed

3 files changed

+47
-13
lines changed

.github/workflows/codeql.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: codeql
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '*/*.mjs'
7+
- '.github/workflows/codeql.yml'
8+
9+
jobs:
10+
codeql:
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
language: ['javascript']
22+
23+
steps:
24+
- uses: actions/checkout@v2.3.4
25+
26+
- uses: github/codeql-action/init@v1
27+
with:
28+
languages: ${{ matrix.language }}
29+
30+
- uses: github/codeql-action/autobuild@v1
31+
32+
- uses: github/codeql-action/analyze@v1

.github/workflows/test.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
1-
name: Test
1+
name: test
22

33
on:
44
push:
5-
branches-ignore:
5+
branches:
66
- main
7+
paths-ignore:
8+
- '*.md'
9+
pull_request:
10+
branches:
11+
- main
12+
paths-ignore:
13+
- '*.md'
714

815
jobs:
916
test:
1017
runs-on: ubuntu-latest
1118

19+
permissions: read-all
20+
21+
env:
22+
CI: true
23+
1224
strategy:
1325
matrix:
1426
node-version: [14.x, 16.x]
1527

1628
steps:
1729
- uses: actions/checkout@v2.3.4
18-
with:
19-
fetch-depth: 2
20-
lfs: true
21-
22-
- run: git checkout HEAD^2
23-
if: ${{ github.event_name == 'pull_request' }}
2430

2531
- uses: actions/setup-node@v2.2.0
2632
with:
@@ -30,9 +36,5 @@ jobs:
3036
- run: npm install --ignore-scripts --pure-lockfile
3137

3238
- run: npm run build --if-present
33-
env:
34-
CI: true
3539

3640
- run: npm run test --if-present
37-
env:
38-
CI: true

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> Action to create a CSV or Markdown report of GitHub Actions used
44
5-
[![Test](https://github.com/ActionsDesk/report-action-usage/actions/workflows/test.yml/badge.svg)](https://github.com/ActionsDesk/report-action-usage/actions/workflows/test.yml) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
5+
[![test](https://github.com/ActionsDesk/report-action-usage/actions/workflows/test.yml/badge.svg)](https://github.com/ActionsDesk/report-action-usage/actions/workflows/test.yml) [![codeql](https://github.com/ActionsDesk/report-action-usage/actions/workflows/codeql.yml/badge.svg)](https://github.com/ActionsDesk/report-action-usage/actions/workflows/codeql.yml) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
66

77
## Usage
88

0 commit comments

Comments
 (0)