Skip to content

Commit

Permalink
Merge pull request #3086 from cisagov/ms/2999-update-workflow-permiss…
Browse files Browse the repository at this point in the history
…ions

#3003: remove monitor and add specific permissions
  • Loading branch information
Matt-Spence authored Nov 15, 2024
2 parents a872893 + 116877b commit 08ad55a
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 12 deletions.
1 change: 0 additions & 1 deletion .github/workflows/clone-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
CF_USERNAME: ${{ secrets.CF_STAGING_USERNAME }}
CF_PASSWORD: ${{ secrets.CF_STAGING_PASSWORD }}
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- name: Clone Database
run: |
# install cf cli and other tools
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/createcachetable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
CF_USERNAME: CF_${{ github.event.inputs.environment }}_USERNAME
CF_PASSWORD: CF_${{ github.event.inputs.environment }}_PASSWORD
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- name: Create cache table for ${{ github.event.inputs.environment }}
uses: cloud-gov/cg-cli-tools@main
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/daily-csv-upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
CF_USERNAME: CF_${{ secrets.CF_REPORT_ENV }}_USERNAME
CF_PASSWORD: CF_${{ secrets.CF_REPORT_ENV }}_PASSWORD
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- name: Generate current-federal.csv
uses: cloud-gov/cg-cli-tools@main
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy-manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
variables:
runs-on: ubuntu-latest
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- name: Setting global variables
uses: actions/github-script@v6
id: var
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy-sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
environment: ${{ steps.var.outputs.environment}}
runs-on: "ubuntu-latest"
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- name: Setting global variables
uses: actions/github-script@v6
id: var
Expand Down Expand Up @@ -72,6 +71,8 @@ jobs:
comment:
runs-on: ubuntu-latest
needs: [variables, deploy]
permissions:
issues: write
steps:
- uses: actions/github-script@v6
env:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/issue-label-notifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ on:
jobs:
notify:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- uses: jenschelkopf/[email protected]
with:
recipients: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
CF_USERNAME: CF_${{ github.event.inputs.environment }}_USERNAME
CF_PASSWORD: CF_${{ github.event.inputs.environment }}_PASSWORD
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- name: Run Django migrations for ${{ github.event.inputs.environment }}
uses: cloud-gov/cg-cli-tools@main
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/reset-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
CF_USERNAME: CF_${{ github.event.inputs.environment }}_USERNAME
CF_PASSWORD: CF_${{ github.event.inputs.environment }}_PASSWORD
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- name: Delete existing data for ${{ github.event.inputs.environment }}
uses: cloud-gov/cg-cli-tools@main
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/security-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- name: Check out
uses: actions/checkout@v3
- name: MockUserLogin should not be in settings.MIDDLEWARE
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
python-linting:
runs-on: ubuntu-latest
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- uses: actions/checkout@v3

- name: Linting
Expand All @@ -33,7 +32,6 @@ jobs:
python-test:
runs-on: ubuntu-latest
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- uses: actions/checkout@v3

- name: Unit tests
Expand All @@ -43,7 +41,6 @@ jobs:
django-migrations-complete:
runs-on: ubuntu-latest
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- uses: actions/checkout@v3

- name: Check for complete migrations
Expand Down

0 comments on commit 08ad55a

Please sign in to comment.