Skip to content

Commit

Permalink
Adds permissions advisor
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam-it authored Nov 3, 2024
1 parent ed861dd commit da331fd
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/permission-advisor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Sample workflow to run the action
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: string
default: "10"

jobs:
advisor:
runs-on: ubuntu-latest
steps:
- uses: GitHubSecurityLab/actions-permissions/advisor@v1
with:
name: ${{ inputs.name }}
count: ${{ fromJSON(inputs.count) }}
2 changes: 0 additions & 2 deletions .github/workflows/release-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1

- name: Setup node
uses: actions/setup-node@v4
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/update-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
runs-on: windows-latest

steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1

- name: Checkout vscode-viva
uses: actions/checkout@v4

Expand Down

0 comments on commit da331fd

Please sign in to comment.