github-actions-workflows

GitHub Actions Workflows

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "github-actions-workflows" with this command: npx skills add hack23/riksdagsmonitor/hack23-riksdagsmonitor-github-actions-workflows

GitHub Actions Workflows

Purpose

Optimize GitHub Actions workflows for Riksdagsmonitor's static site CI/CD pipeline.

Core Patterns

Quality Checks Workflow

name: Quality Checks

on: push: branches: [main] pull_request:

permissions: contents: read

jobs: validate: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4

  # HTML validation
  - name: Validate HTML
    run: |
      npm install -g htmlhint
      htmlhint *.html
  
  # Link checking
  - name: Check Links
    run: |
      npm install -g linkinator
      python3 -m http.server 8080 &
      sleep 5
      linkinator http://localhost:8080/ --recurse

Security Scanning

name: Security

on: [push, pull_request]

permissions: security-events: write

jobs: scan: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4

  # CodeQL
  - uses: github/codeql-action/init@v3
    with:
      languages: javascript
  
  - uses: github/codeql-action/analyze@v3
  
  # Dependency check
  - name: Dependency Scan
    uses: dependency-check/Dependency-Check_Action@main

Deployment Workflow

name: Deploy

on: push: branches: [main]

permissions: contents: read pages: write id-token: write

jobs: deploy: runs-on: ubuntu-latest environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/checkout@v4

  - name: Setup Pages
    uses: actions/configure-pages@v4
  
  - name: Upload artifact
    uses: actions/upload-pages-artifact@v3
    with:
      path: '.'
  
  - name: Deploy to GitHub Pages
    id: deployment
    uses: actions/deploy-pages@v4

Best Practices

  • ✅ Minimal permissions (least privilege)

  • ✅ Pin actions to SHA (supply chain security)

  • ✅ Cache dependencies (faster builds)

  • ✅ Parallel jobs (faster feedback)

  • ✅ Matrix testing (cross-browser)

References

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

github agentic workflows tools ecosystem

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

github-agentic-workflows

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-review-practices

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-quality-checks

No summary provided by upstream source.

Repository SourceNeeds Review