-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: added GitHub Actions permissions monitoring
Added the GitHubSecurityLab/actions-permissions/monitor action to advisor.yml, build.yml, and publish.yml files. This action will monitor permissions based on the provided config file.
- Loading branch information
Showing
4 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: permissions advisor | ||
|
||
permissions: | ||
actions: read | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
name: | ||
description: 'The name of the workflow file to analyze' | ||
required: true | ||
type: string | ||
count: | ||
description: 'How many last runs to analyze' | ||
required: false | ||
type: number | ||
default: 10 | ||
|
||
jobs: | ||
advisor: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: GitHubSecurityLab/actions-permissions/[email protected] | ||
with: | ||
name: ${{ inputs.name }} | ||
count: ${{ inputs.count }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,9 @@ jobs: | |
run: | ||
shell: bash | ||
steps: | ||
- uses: GitHubSecurityLab/actions-permissions/[email protected] | ||
with: | ||
config: ${{ vars.PERMISSIONS_CONFIG }} | ||
- uses: actions/[email protected] | ||
- name: setting up python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,9 @@ jobs: | |
shell: bash | ||
name: python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
steps: | ||
- uses: GitHubSecurityLab/actions-permissions/[email protected] | ||
with: | ||
config: ${{ vars.PERMISSIONS_CONFIG }} | ||
- uses: actions/[email protected] | ||
- name: setting up python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,9 @@ jobs: | |
run: | ||
shell: bash | ||
steps: | ||
- uses: GitHubSecurityLab/actions-permissions/[email protected] | ||
with: | ||
config: ${{ vars.PERMISSIONS_CONFIG }} | ||
- uses: actions/[email protected] | ||
- name: setting up python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
|