Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add top-level permission for CI workflows #42

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/deploy_page_ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
permissions: read-all

on:
# Runs on pushes targeting the default branch
Expand Down
73 changes: 37 additions & 36 deletions .github/workflows/web_ai_showcase_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#

name: Web AI Showcase CI
permissions: read-all

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
Expand All @@ -20,19 +21,19 @@ on:
- "SECURITY.md"
- "ATTRIBUTIONS.md"
pull_request:
types:
- opened
- synchronize
paths-ignore:
- "README.md"
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.md"
- "LICENSE"
- "SECURITY.md"
- "ATTRIBUTIONS.md"
types:
- opened
- synchronize
paths-ignore:
- "README.md"
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.md"
- "LICENSE"
- "SECURITY.md"
- "ATTRIBUTIONS.md"
# allow to be triggered manually
workflow_dispatch:

# Cancel any in-flight jobs for the same PR/branch so there's only one active
# at a time
concurrency:
Expand All @@ -41,29 +42,29 @@ concurrency:

jobs:
linting_check:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 5
- name: Install tool dependencies
run: npm install
- name: Linting Check
run: npm run lint
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 5

- name: Install tool dependencies
run: npm install

- name: Linting Check
run: npm run lint

build_prod_4_gh_pages:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 5
- name: Install tool dependencies
run: npm install
- name: Build production
run: npm run prod:github
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 5

- name: Install tool dependencies
run: npm install

- name: Build production
run: npm run prod:github
Loading