-
Notifications
You must be signed in to change notification settings - Fork 1.2k
41 lines (35 loc) · 1.43 KB
/
assess_permissions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
name: Assess Repository Permissions
on:
workflow_dispatch:
schedule:
- cron: '0 5 2 * *' # At 5 UTC every 2nd day of the month (out of business hours for rate limiting)
permissions: {}
jobs:
assess_permission:
runs-on: ubuntu-latest
strategy:
matrix:
value: ['datadog-agent', 'datadog-agent-buildimages', 'datadog-agent-macos-build', 'omnibus-ruby', 'omnibus-software', 'agent-release-management']
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
sparse-checkout: 'tasks'
persist-credentials: false
- name: Install python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version-file: .python-version
cache: "pip"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r tasks/libs/requirements-github.txt
- name: Assess Repository Permissions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }}
run: inv -e github.check-permissions --repo ${{ matrix.value }}