Skip to content

Commit

Permalink
[ADMINAPI-993] Token Permissions Fixes (#121)
Browse files Browse the repository at this point in the history
* [ADMINAPI-993] Incorporate OSSF scorecard

* [ADMINAPI-993] Add workflow permissions, Fix token

* [ADMINAPI-993] Adding dependabot file
  • Loading branch information
msilesgap authored May 2, 2024
1 parent 819c869 commit fd7cbfe
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.

version: 2
updates:
- package-ecosystem: nuget
directory: Application/
target-branch: main
schedule:
interval: weekly
2 changes: 2 additions & 0 deletions .github/workflows/api-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ env:
FOLDER_NAME: "API Automation Run"
RESULTS_FILE: "test-results"

permissions: read-all

jobs:
run-e2e-tests:
defaults:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/on-merge-or-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ env:
API_URL: https://api.github.com/repos/${{ github.repository }}
TOKEN: ${{ secrets.EDFI_BUILD_AGENT_PAT }}

permissions: read-all

jobs:
create-pre-releases:
name: Create Pre-Releases
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/on-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ env:
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
REF: ${{ github.ref_name }}

permissions: read-all

jobs:
pack:
name: Build and Pack
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/on-pullrequest-dockerfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ env:
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}

permissions: read-all

jobs:
docker-analysis:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/on-pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
- ".github/**/*.yml"
workflow_dispatch:

permissions: read-all

jobs:
# TODO: restore this with AA-1601
# run-ps-lint:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ env:
RELEASE_VIEW_ID: "53acfbeb-77f2-4ef6-8596-dc19e5802775" #Release
ARTIFACTS_USERNAME: ${{ secrets.AZURE_ARTIFACTS_USER_NAME }}

permissions: read-all

jobs:
delete-pre-releases:
name: Delete Unnecessary Pre-Releases
Expand Down

0 comments on commit fd7cbfe

Please sign in to comment.