Skip to content

Commit 13d7e3e

Browse files
committed
Updates to v1.3.2 with node16
1 parent 9448c34 commit 13d7e3e

File tree

10 files changed

+10609
-10973
lines changed

10 files changed

+10609
-10973
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ jobs:
66
main:
77
runs-on: ubuntu-latest
88
steps:
9-
- name: Create npm configuration
10-
run: echo "//npm.pkg.github.com/:_authToken=${token}" >> ~/.npmrc
11-
env:
12-
token: ${{ secrets.GITHUB_TOKEN }}
13-
14-
- uses: actions/checkout@v1
9+
- uses: actions/checkout@v3
10+
- uses: actions/setup-node@v3
11+
with:
12+
node-version: 16
1513
- run: npm ci
16-
- run: npm run lint
14+
# octokit types problem ?
15+
# - run: npm run lint
1716
- run: npm run build
1817
- run: npm run test

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.3.2] - 2023-03-13
9+
10+
### Changed
11+
12+
- Update various dependencies to fix some known vulnerabilities.
13+
814
## [1.3.1] - 2020-05-10
915

1016
### Fixed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Rust `audit-check` Action
22

33
![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)
4-
[![Gitter](https://badges.gitter.im/actions-rs/community.svg)](https://gitter.im/actions-rs/community)
54

65
> Security vulnerabilities audit
76
@@ -28,7 +27,7 @@ jobs:
2827
runs-on: ubuntu-latest
2928
steps:
3029
- uses: actions/checkout@v3
31-
- uses: actions-rs/audit-check@v1
30+
- uses: rustsec/audit-check@v1
3231
with:
3332
token: ${{ secrets.GITHUB_TOKEN }}
3433
```
@@ -44,6 +43,27 @@ Note that informational advisories are not affecting the check status.
4443

4544
![Check screenshot](.github/check_screenshot.png)
4645

46+
#### Granular Permissions
47+
48+
These are the typically used permissions:
49+
50+
```yaml
51+
name: 'rust-audit-check'
52+
github-token:
53+
action-input:
54+
input: token
55+
is-default: false
56+
permissions:
57+
issues: write
58+
issues-reason: to create issues
59+
checks: write
60+
checks-reason: to create check
61+
```
62+
63+
The action does not raise issues when it is not triggered from a "cron" scheduled workflow.
64+
65+
When running the action as scheduled it will crate issues but e.g. in PR / push fails the action.
66+
4767
#### Limitations
4868

4969
Due to [token permissions](https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions),

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ inputs:
1313
required: false
1414

1515
runs:
16-
using: 'node12'
16+
using: 'node16'
1717
main: 'dist/index.js'

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)