1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

2355 Commits

Author SHA1 Message Date
Gabriela Gutierrez
404301103d
Ref actions by commit SHA in shellcheck.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8

https://github.com/ludeeus/action-shellcheck/releases/tag/2.0.0
00cae500b0


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-06-07 17:05:55 -03:00
Gabriela Gutierrez
346f7bc0fd
Ref actions by commit SHA in sbom_generator.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8

https://github.com/advanced-security/sbom-generator-action/releases/tag/v0.0.1
375dee8e61

https://github.com/actions/upload-artifact/releases/tag/v3.1.2
0b7f8abb15


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-06-07 17:03:30 -03:00
Gabriela Gutierrez
f6afa2b95f
Ref actions by commit SHA in release.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-06-07 16:58:50 -03:00
Gabriela Gutierrez
0f90ed4833
Ref actions by commit SHA in lint.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/setup-go/releases/tag/v4.0.1
fac708d667

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8

https://github.com/golangci/golangci-lint-action/releases/tag/v3.5.0
5f1fec7010


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-06-07 16:58:00 -03:00
Gabriela Gutierrez
2d8c888a00
Ref actions by commit SHA in labeler.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/labeler/releases/tag/v4.1.0
9fcb2c2f55


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-06-07 16:53:15 -03:00
Gabriela Gutierrez
7865eebd82
Ref actions by commit SHA in build_test.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/setup-go/releases/tag/v4.0.1
fac708d667

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8

https://github.com/actions/cache/releases/tag/v3.3.1
88522ab9f3


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-06-07 16:51:26 -03:00
shirou
1754b8155d
Merge pull request #1478 from shirou/feature/add_doc_about_ctx
add(README): add passing context value document
2023-06-04 17:32:49 +09:00
shirou
341d501dce add(README): add passing context value document
which is introduced by #1439.
2023-06-04 08:11:13 +00:00
shirou
5a20eac3c7
Merge pull request #1476 from shirou/dependabot/go_modules/github.com/stretchr/testify-1.8.4
chore(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4
2023-06-04 16:20:05 +09:00
shirou
607d540769
Merge pull request #1439 from atoulme/override_env
allow to pass context values to override environment variables
2023-06-04 16:14:52 +09:00
Antoine Toulme
b712e59295 fix more linting reports 2023-06-03 14:17:16 -07:00
Antoine Toulme
842e4da755 apply code review 2023-06-02 01:31:05 -07:00
Antoine Toulme
35657e3262 add more env keys 2023-06-02 01:31:05 -07:00
Antoine Toulme
177e1b1982 remove deprecation comments 2023-06-02 01:31:05 -07:00
Antoine Toulme
fe1caf758c lint fixes 2023-06-02 01:31:05 -07:00
Antoine Toulme
0cbdf257ab change to use a typed map per code review 2023-06-02 01:31:05 -07:00
Antoine Toulme
5b9212e240 move the Env key out of internal packages 2023-06-02 01:31:05 -07:00
Antoine Toulme
38b94668ea allow to pass context values to override environment variables 2023-06-02 01:31:05 -07:00
dependabot[bot]
3081c11f1d
chore(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.3...v1.8.4)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-31 01:58:23 +00:00
shirou
32e8a92ad6
Merge pull request #1475 from shirou/feature/fix_potential_leak_on_common_sleep
[common]: fix potential leak on Sleep.
v3.23.5
2023-05-29 22:56:32 +09:00
shirou
3e789a459a [common]: fix potential leak on Sleep. 2023-05-28 12:32:10 +00:00
shirou
03ae19bea8
Merge pull request #1472 from powersj/fix/writeback
fix(mem): Correct capitalization of linux writeback
2023-05-25 22:32:57 +09:00
shirou
194e6e2edc
Merge pull request #1467 from shirou/dependabot/go_modules/github.com/yusufpapurcu/wmi-1.2.3
chore(deps): bump github.com/yusufpapurcu/wmi from 1.2.2 to 1.2.3
2023-05-25 12:08:55 +09:00
dependabot[bot]
5537690141
chore(deps): bump github.com/yusufpapurcu/wmi from 1.2.2 to 1.2.3
Bumps [github.com/yusufpapurcu/wmi](https://github.com/yusufpapurcu/wmi) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/yusufpapurcu/wmi/releases)
- [Commits](https://github.com/yusufpapurcu/wmi/compare/v1.2.2...v1.2.3)

---
updated-dependencies:
- dependency-name: github.com/yusufpapurcu/wmi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-25 02:37:56 +00:00
shirou
1983d2b908
Merge pull request #1468 from shirou/dependabot/go_modules/github.com/stretchr/testify-1.8.3
chore(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3
2023-05-25 11:37:03 +09:00
Josh Powers
d71f0022a1 fix(mem): Correct capitalization of linux writeback
fixes: #1471
2023-05-24 08:03:03 -06:00
dependabot[bot]
fd69d68f44
chore(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.2 to 1.8.3.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.2...v1.8.3)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 01:58:28 +00:00
shirou
7c610c5037
Merge pull request #1462 from cuishuang/master
fix some comments
2023-05-13 12:12:18 +09:00
cui fliter
9aa4e7a744 fix some comments
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-05-09 16:42:07 +08:00
shirou
e045dc75ca
Merge pull request #1460 from shirou/dependabot/go_modules/github.com/shoenig/go-m1cpu-0.1.6
chore(deps): bump github.com/shoenig/go-m1cpu from 0.1.5 to 0.1.6
2023-05-05 21:16:32 +09:00
shirou
d67461898b
Merge pull request #1459 from shirou/dependabot/go_modules/golang.org/x/sys-0.8.0
chore(deps): bump golang.org/x/sys from 0.7.0 to 0.8.0
2023-05-05 21:16:12 +09:00
dependabot[bot]
9c692e250e
chore(deps): bump github.com/shoenig/go-m1cpu from 0.1.5 to 0.1.6
Bumps [github.com/shoenig/go-m1cpu](https://github.com/shoenig/go-m1cpu) from 0.1.5 to 0.1.6.
- [Release notes](https://github.com/shoenig/go-m1cpu/releases)
- [Commits](https://github.com/shoenig/go-m1cpu/compare/v0.1.5...v0.1.6)

---
updated-dependencies:
- dependency-name: github.com/shoenig/go-m1cpu
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-05 01:58:43 +00:00
dependabot[bot]
61afc551e2
chore(deps): bump golang.org/x/sys from 0.7.0 to 0.8.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/sys/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-05 01:58:38 +00:00
shirou
db89d12010
Merge pull request #1453 from Juneezee/refactor/errors.Is
refactor(process): compare error with `errors.Is`
v3.23.4
2023-04-29 00:59:48 +09:00
Eng Zer Jun
0439039205
refactor(process): compare error with errors.Is
Starting from Go 1.13, `errors.Is` is the preferable way to compare
error equality [1].

[1]: https://go.dev/blog/go1.13-errors

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-04-24 15:00:01 +08:00
shirou
17fac7cbba
Merge pull request #1450 from gabibguti/master
Add Security Policy
2023-04-16 18:46:34 +09:00
Gabriela Gutierrez
2d2db8fee9
Create SECURITY.md
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-04-13 10:34:56 -03:00
shirou
10f213c448
Merge pull request #1448 from shirou/dependabot/github_actions/actions/upload-artifact-3.1.2
chore(deps): bump actions/upload-artifact from 3.1.0 to 3.1.2
2023-04-07 11:05:53 +09:00
dependabot[bot]
d6ee47e5dc
chore(deps): bump actions/upload-artifact from 3.1.0 to 3.1.2
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.0 to 3.1.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3.1.0...v3.1.2)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-07 01:57:53 +00:00
shirou
cf428f8c72
Merge pull request #1443 from mmorel-35/linter
ci(lint): correct gci linter
2023-04-06 23:11:29 +09:00
shirou
755bcab7b9
Update branch of sbom_generator.yml 2023-04-06 23:10:05 +09:00
shirou
21a646bd82
Merge pull request #1447 from shirou/feature/add_sbom_github_actions
Add github SBOM Generator
2023-04-06 22:50:27 +09:00
shirou
bcf3fe925c
Merge pull request #1445 from shirou/dependabot/go_modules/golang.org/x/sys-0.7.0
chore(deps): bump golang.org/x/sys from 0.6.0 to 0.7.0
2023-04-06 22:01:32 +09:00
dependabot[bot]
f79a932b05 chore(deps): bump golang.org/x/sys from 0.6.0 to 0.7.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-06 12:52:45 +00:00
shirou
90f9165482 Merge branch 'master' of github.com:shirou/gopsutil into feature/add_sbom_github_actions 2023-04-06 12:49:47 +00:00
shirou
c975eb31f4
Merge pull request #1446 from shirou/dependabot/go_modules/github.com/shoenig/go-m1cpu-0.1.5
chore(deps): bump github.com/shoenig/go-m1cpu from 0.1.4 to 0.1.5
2023-04-06 21:49:20 +09:00
shirou
68a3b4210c fix: remove ubuntu-18.04, add macos-12, windows-2022
ubuntu-18.04 has been deprecated:
https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
2023-04-06 12:38:52 +00:00
shirou
d7f65a84ca Add github SBOM Generator
See this GitHub blog post
https://github.blog/2023-03-28-introducing-self-service-sboms/
2023-04-06 12:31:41 +00:00
dependabot[bot]
13b3618b1e
chore(deps): bump github.com/shoenig/go-m1cpu from 0.1.4 to 0.1.5
Bumps [github.com/shoenig/go-m1cpu](https://github.com/shoenig/go-m1cpu) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/shoenig/go-m1cpu/releases)
- [Commits](https://github.com/shoenig/go-m1cpu/compare/v0.1.4...v0.1.5)

---
updated-dependencies:
- dependency-name: github.com/shoenig/go-m1cpu
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-05 01:58:38 +00:00
Matthieu MOREL
1fb1e3e3e6 ci(lint): correct gci linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2023-04-04 18:07:22 +00:00